Skip to content

Commit

Permalink
Fix 7.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jun 30, 2023
1 parent 0646af9 commit 953cc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClassMapGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private static function normalizePath(string $path)
}

// ensure c: is normalized to C:
$prefix = Preg::replaceCallbackStrictGroups('{(?:^|://)[a-z]:$}i', function (array $m) { return strtoupper($m[0]); }, $prefix);
$prefix = Preg::replaceCallback('{(?:^|://)[a-z]:$}i', function (array $m) { return strtoupper((string) $m[0]); }, $prefix);

return $prefix.$absolute.implode('/', $parts);
}
Expand Down

0 comments on commit 953cc4e

Please sign in to comment.