Skip to content

Commit

Permalink
No need normalize cwd() as only need strlen() on VendorMissAnalyseGua…
Browse files Browse the repository at this point in the history
…rd (#5598)
  • Loading branch information
samsonasik committed Feb 10, 2024
1 parent 6d408f5 commit fbc391a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/VendorMissAnalyseGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function hasDowngradeSets(): bool
*/
private function containsVendorPath(array $filePaths): bool
{
$cwdLength = strlen(PathNormalizer::normalize(getcwd()));
$cwdLength = strlen(getcwd());

foreach ($filePaths as $filePath) {
$normalizedPath = PathNormalizer::normalize(realpath($filePath));
Expand Down

0 comments on commit fbc391a

Please sign in to comment.