Skip to content

Commit 55689ae

Browse files
author
Анатолий Нехай
committed
fix for php 8.1 (Optional parameter $host declared before required parameter $path is implicitly treated as a required parameter)
1 parent 38311fa commit 55689ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Annotation/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ final class Route
138138
public function __construct(
139139
string $name,
140140
?string $host = null,
141-
string $path,
141+
string $path = '/',
142142
?string $method = null,
143143
array $methods = [],
144144
array $middlewares = [],

0 commit comments

Comments
 (0)