Skip to content

Commit 84471d4

Browse files
authored
Merge pull request #244 from gricob/hotfix/route-debug-message
Add PHP >= 7.2 compatibility to the getRouteDebugMessage method of Pr…
2 parents c37797d + e789b37 commit 84471d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ProviderBasedGenerator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ public function getRouteDebugMessage($name, array $parameters = [])
9393
return 'Route with path '.$name->getPath();
9494
}
9595

96-
return get_class($name);
96+
if (is_object($name)) {
97+
return get_class($name);
98+
}
99+
100+
return 'Null route';
97101
}
98102
}

0 commit comments

Comments
 (0)