We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 641043e commit 594cfe2Copy full SHA for 594cfe2
Caster/LinkStub.php
@@ -71,7 +71,7 @@ private function getComposerRoot($file, &$inVendor)
71
foreach (get_declared_classes() as $class) {
72
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
73
$r = new \ReflectionClass($class);
74
- $v = \dirname(\dirname($r->getFileName()));
+ $v = \dirname($r->getFileName(), 2);
75
if (file_exists($v.'/composer/installed.json')) {
76
self::$vendorRoots[] = $v.\DIRECTORY_SEPARATOR;
77
}
0 commit comments