@@ -77,7 +77,7 @@ public function __construct(
77
77
string $ resourceType ,
78
78
array $ options ,
79
79
string $ controller ,
80
- string $ prefix = null
80
+ ? string $ prefix = null
81
81
) {
82
82
$ this ->router = $ router ;
83
83
$ this ->resource = $ resource ;
@@ -106,7 +106,7 @@ public function withId(): self
106
106
* @param string|null $method
107
107
* @return ActionProxy
108
108
*/
109
- public function get (string $ uri , string $ method = null ): ActionProxy
109
+ public function get (string $ uri , ? string $ method = null ): ActionProxy
110
110
{
111
111
return $ this ->register ('get ' , $ uri , $ method );
112
112
}
@@ -118,7 +118,7 @@ public function get(string $uri, string $method = null): ActionProxy
118
118
* @param string|null $method
119
119
* @return ActionProxy
120
120
*/
121
- public function post (string $ uri , string $ method = null ): ActionProxy
121
+ public function post (string $ uri , ? string $ method = null ): ActionProxy
122
122
{
123
123
return $ this ->register ('post ' , $ uri , $ method );
124
124
}
@@ -130,7 +130,7 @@ public function post(string $uri, string $method = null): ActionProxy
130
130
* @param string|null $method
131
131
* @return ActionProxy
132
132
*/
133
- public function patch (string $ uri , string $ method = null ): ActionProxy
133
+ public function patch (string $ uri , ? string $ method = null ): ActionProxy
134
134
{
135
135
return $ this ->register ('patch ' , $ uri , $ method );
136
136
}
@@ -142,7 +142,7 @@ public function patch(string $uri, string $method = null): ActionProxy
142
142
* @param string|null $method
143
143
* @return ActionProxy
144
144
*/
145
- public function put (string $ uri , string $ method = null ): ActionProxy
145
+ public function put (string $ uri , ? string $ method = null ): ActionProxy
146
146
{
147
147
return $ this ->register ('put ' , $ uri , $ method );
148
148
}
@@ -154,7 +154,7 @@ public function put(string $uri, string $method = null): ActionProxy
154
154
* @param string|null $method
155
155
* @return ActionProxy
156
156
*/
157
- public function delete (string $ uri , string $ method = null ): ActionProxy
157
+ public function delete (string $ uri , ? string $ method = null ): ActionProxy
158
158
{
159
159
return $ this ->register ('delete ' , $ uri , $ method );
160
160
}
@@ -166,7 +166,7 @@ public function delete(string $uri, string $method = null): ActionProxy
166
166
* @param string|null $method
167
167
* @return ActionProxy
168
168
*/
169
- public function options (string $ uri , string $ method = null ): ActionProxy
169
+ public function options (string $ uri , ? string $ method = null ): ActionProxy
170
170
{
171
171
return $ this ->register ('options ' , $ uri , $ method );
172
172
}
@@ -177,7 +177,7 @@ public function options(string $uri, string $method = null): ActionProxy
177
177
* @param string|null $action
178
178
* @return ActionProxy
179
179
*/
180
- public function register (string $ method , string $ uri , string $ action = null ): ActionProxy
180
+ public function register (string $ method , string $ uri , ? string $ action = null ): ActionProxy
181
181
{
182
182
$ action = $ action ?: $ this ->guessControllerAction ($ uri );
183
183
$ parameter = $ this ->getParameter ();
0 commit comments