Skip to content

Commit 7693e6f

Browse files
committed
MC-38348: Make SVC and Infra changes
- Fixed mistakes in PackageNameResolver
1 parent 7abf5ec commit 7693e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Helper/PackageNameResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ private function getComposerPackageLocation(string $filepath):?string {
4646
&& $composerDirPath !== $sourceAfterDir
4747
&& $composerDirPath !== '.') {
4848

49-
$composerPath = '$composerDirPath' . '/composer.json';
50-
if (is_readable($composerPath)) {
49+
$composerPath = $composerDirPath . '/composer.json';
50+
if (is_file($composerPath)) {
5151
return $composerPath;
5252
}
5353
$composerDirPath = dirname($filepath, ++$level);

0 commit comments

Comments
 (0)