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 7abf5ec commit 7693e6fCopy full SHA for 7693e6f
src/Helper/PackageNameResolver.php
@@ -46,8 +46,8 @@ private function getComposerPackageLocation(string $filepath):?string {
46
&& $composerDirPath !== $sourceAfterDir
47
&& $composerDirPath !== '.') {
48
49
- $composerPath = '$composerDirPath' . '/composer.json';
50
- if (is_readable($composerPath)) {
+ $composerPath = $composerDirPath . '/composer.json';
+ if (is_file($composerPath)) {
51
return $composerPath;
52
}
53
$composerDirPath = dirname($filepath, ++$level);
0 commit comments