Skip to content

Commit 12f3f64

Browse files
committed
Merge remote-tracking branch 'origin/2.1'
2 parents d40e6f8 + fbba5ec commit 12f3f64

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
2.1.1
5+
-----
6+
7+
* Fix warning about `get_class` on `null` in PHP > 7.2
8+
49
2.1.0
510
-----
611

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)