File tree 1 file changed +6
-3
lines changed
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
84
84
if (isset ($ projectComposerJson ['config ' ]['vendor-dir ' ]) &&
85
85
is_string ($ projectComposerJson ['config ' ]['vendor-dir ' ])
86
86
) {
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
90
92
? $ projectComposerJson ['config ' ]['vendor-dir ' ]
91
93
: $ this ->projectDirectory . '/ ' . $ projectComposerJson ['config ' ]['vendor-dir ' ];
92
94
}
93
95
94
96
}
97
+
95
98
return $ this ->projectDirectory . '/vendor ' ;
96
99
}
97
100
}
You can’t perform that action at this time.
0 commit comments