Skip to content

Commit 5bea19f

Browse files
authored
Update ModuleControllerAutoloader.php
Fix path to Magento root in controller autoloader. This fixes issue when phpstan couldn't find controller file (when overwriting controllers)
1 parent 6934647 commit 5bea19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Autoload/Magento/ModuleControllerAutoloader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class ModuleControllerAutoloader
1818
public function __construct(string $codePool, string $magentoRoot = null)
1919
{
2020
if (empty($magentoRoot)) {
21-
$magentoRoot = \dirname(BP, 2);
21+
$magentoRoot = BP;
2222
}
2323
$this->codePool = $codePool;
2424
$this->magentoRoot = $magentoRoot;

0 commit comments

Comments
 (0)