Skip to content

Commit b6f3462

Browse files
authored
Fixed the matching of path, which should start with it.
1 parent 1a6f13d commit b6f3462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function onPreAutoloadDump()
3535
$vendor_dir = str_replace('\'', '\\\'', realpath($this->composer->getConfig()->get('vendor-dir')));
3636
$base_dir = str_replace('\'', '\\\'', getcwd());
3737

38-
$path = false === strpos(__DIR__, $vendor_dir)
38+
$path = 0 === strpos(__DIR__, $vendor_dir)
3939
? __DIR__ . '/'
4040
: $vendor_dir . '/hostnet/path-composer-plugin-lib/src/';
4141

0 commit comments

Comments
 (0)