We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c3b85 commit 294b220Copy full SHA for 294b220
1 file changed
src/Framework/Routing/Routing.php
@@ -24,7 +24,6 @@
24
use Symfony\Component\Routing\Route;
25
use Symfony\Component\Routing\RouteCollection;
26
use function array_unique;
27
-use function assert;
28
use function class_exists;
29
use function explode;
30
use function http_build_query;
@@ -87,16 +86,14 @@ public static function build(BuildContext $context): void
87
86
continue;
88
}
89
90
- assert(is_string($classAttr->path), 'Route path must be a string');
91
-
92
foreach ($class->getMethods() as $method) {
93
$methodAttr = ReflectionHelpers::getAttribute($method, RouteAttribute::class);
94
if (!$methodAttr) {
95
96
97
98
/* titles get concatenated */
99
- $path = $classAttr->path;
+ $path = ($classAttr->path ?? '');
100
if (is_string($methodAttr->path)) {
101
$path .= $methodAttr->path;
102
0 commit comments