File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,17 @@ private function resolveVendorDir(): string
8484 if (isset ($ projectComposerJson ['config ' ]['vendor-dir ' ]) &&
8585 is_string ($ projectComposerJson ['config ' ]['vendor-dir ' ])
8686 ) {
87- return PathNormalizer::normalize (
88- realpath ($ projectComposerJson ['config ' ]['vendor-dir ' ])
89- ) === PathNormalizer::normalize ($ projectComposerJson ['config ' ]['vendor-dir ' ])
87+ $ realPathVendorDir = realpath ($ projectComposerJson ['config ' ]['vendor-dir ' ]) ?: '' ;
88+ $ normalizedRealPathVendorDir = PathNormalizer::normalize ($ realPathVendorDir );
89+ $ normalizedVendorDir = PathNormalizer::normalize ($ projectComposerJson ['config ' ]['vendor-dir ' ]);
90+
91+ return $ normalizedRealPathVendorDir === $ normalizedVendorDir
9092 ? $ projectComposerJson ['config ' ]['vendor-dir ' ]
9193 : $ this ->projectDirectory . '/ ' . $ projectComposerJson ['config ' ]['vendor-dir ' ];
9294 }
9395
9496 }
97+
9598 return $ this ->projectDirectory . '/vendor ' ;
9699 }
97100}
You can’t perform that action at this time.
0 commit comments