@@ -26,7 +26,7 @@ public static function normalizeFromLaravel(string $routeUri, array $matchedPara
2626 * sections like [.json] that have no placeholder param
2727 * @return string|null
2828 */
29- public static function normalizeFromSlim (string $ pattern , array $ matchedParams = [], ? string $ urlPath = null )
29+ public static function normalizeFromSlim (string $ pattern , array $ matchedParams = [], $ urlPath = null )
3030 {
3131 return self ::normalizeBraceRoute ($ pattern , $ matchedParams , true , $ urlPath );
3232 }
@@ -39,7 +39,7 @@ public static function normalizeFromSlim(string $pattern, array $matchedParams =
3939 * route defaults); when provided, absent params are dropped
4040 * @return string|null
4141 */
42- public static function normalizeFromSymfony (string $ path , ? array $ matchedParams = null )
42+ public static function normalizeFromSymfony (string $ path , $ matchedParams = null )
4343 {
4444 if ($ matchedParams !== null ) {
4545 // Mark params absent from the URL as optional so normalizeBraceSegment drops them.
@@ -299,7 +299,7 @@ private static function normalizeBraceRoute(
299299 string $ route ,
300300 array $ matchedParams ,
301301 bool $ expandSquare = false ,
302- ? string $ urlPath = null
302+ $ urlPath = null
303303 ) {
304304 $ route = trim ($ route );
305305 if ($ route === '' || $ route === '/ ' ) {
@@ -396,7 +396,7 @@ private static function normalizeBraceSegment(string $segment, array $matchedPar
396396 * to decide whether the literal text was part of the request; without it the
397397 * section is always kept (backward-compatible behaviour).
398398 */
399- private static function expandSquareBracketOptionals (string $ route , array $ matchedParams , ? string $ urlPath = null ): string
399+ private static function expandSquareBracketOptionals (string $ route , array $ matchedParams , $ urlPath = null ): string
400400 {
401401 $ prev = null ;
402402 while ($ prev !== $ route ) {
0 commit comments