@@ -35,14 +35,14 @@ class Route
35
35
* @param string[]|string $schemes
36
36
*/
37
37
public function __construct (
38
- string | array | null $ path = null ,
38
+ string | array $ path = null ,
39
39
private ?string $ name = null ,
40
40
private array $ requirements = [],
41
41
private array $ options = [],
42
42
private array $ defaults = [],
43
43
private ?string $ host = null ,
44
- array | string $ methods = [],
45
- array | string $ schemes = [],
44
+ array | string $ methods = [],
45
+ array | string $ schemes = [],
46
46
private ?string $ condition = null ,
47
47
private ?int $ priority = null ,
48
48
string $ locale = null ,
@@ -146,7 +146,7 @@ public function getDefaults()
146
146
return $ this ->defaults ;
147
147
}
148
148
149
- public function setSchemes (array | string $ schemes )
149
+ public function setSchemes (array | string $ schemes )
150
150
{
151
151
$ this ->schemes = (array ) $ schemes ;
152
152
}
@@ -156,7 +156,7 @@ public function getSchemes()
156
156
return $ this ->schemes ;
157
157
}
158
158
159
- public function setMethods (array | string $ methods )
159
+ public function setMethods (array | string $ methods )
160
160
{
161
161
$ this ->methods = (array ) $ methods ;
162
162
}
0 commit comments