Skip to content

Commit 2ab71bd

Browse files
committed
Fix pipeline
1 parent 4b90b49 commit 2ab71bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/DDTrace/Util/RouteNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)