Skip to content

Commit c1b24a2

Browse files
committed
fix: fatal error if no middleware in route
middleware was declared without initialize. If there no middleware was used in route it triggers fatal error in merge as this one is not array.
1 parent 22d7dc2 commit c1b24a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Router/RouteBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class RouteBase
4343

4444
private $_ignoreToken;
4545

46-
private $_middleware;
46+
private $_middleware = [];
4747

4848
private static $_isGrouped;
4949

0 commit comments

Comments
 (0)