@@ -77,7 +77,7 @@ public function __construct(
7777 string $ resourceType ,
7878 array $ options ,
7979 string $ controller ,
80- string $ prefix = null
80+ ? string $ prefix = null
8181 ) {
8282 $ this ->router = $ router ;
8383 $ this ->resource = $ resource ;
@@ -106,7 +106,7 @@ public function withId(): self
106106 * @param string|null $method
107107 * @return ActionProxy
108108 */
109- public function get (string $ uri , string $ method = null ): ActionProxy
109+ public function get (string $ uri , ? string $ method = null ): ActionProxy
110110 {
111111 return $ this ->register ('get ' , $ uri , $ method );
112112 }
@@ -118,7 +118,7 @@ public function get(string $uri, string $method = null): ActionProxy
118118 * @param string|null $method
119119 * @return ActionProxy
120120 */
121- public function post (string $ uri , string $ method = null ): ActionProxy
121+ public function post (string $ uri , ? string $ method = null ): ActionProxy
122122 {
123123 return $ this ->register ('post ' , $ uri , $ method );
124124 }
@@ -130,7 +130,7 @@ public function post(string $uri, string $method = null): ActionProxy
130130 * @param string|null $method
131131 * @return ActionProxy
132132 */
133- public function patch (string $ uri , string $ method = null ): ActionProxy
133+ public function patch (string $ uri , ? string $ method = null ): ActionProxy
134134 {
135135 return $ this ->register ('patch ' , $ uri , $ method );
136136 }
@@ -142,7 +142,7 @@ public function patch(string $uri, string $method = null): ActionProxy
142142 * @param string|null $method
143143 * @return ActionProxy
144144 */
145- public function put (string $ uri , string $ method = null ): ActionProxy
145+ public function put (string $ uri , ? string $ method = null ): ActionProxy
146146 {
147147 return $ this ->register ('put ' , $ uri , $ method );
148148 }
@@ -154,7 +154,7 @@ public function put(string $uri, string $method = null): ActionProxy
154154 * @param string|null $method
155155 * @return ActionProxy
156156 */
157- public function delete (string $ uri , string $ method = null ): ActionProxy
157+ public function delete (string $ uri , ? string $ method = null ): ActionProxy
158158 {
159159 return $ this ->register ('delete ' , $ uri , $ method );
160160 }
@@ -166,7 +166,7 @@ public function delete(string $uri, string $method = null): ActionProxy
166166 * @param string|null $method
167167 * @return ActionProxy
168168 */
169- public function options (string $ uri , string $ method = null ): ActionProxy
169+ public function options (string $ uri , ? string $ method = null ): ActionProxy
170170 {
171171 return $ this ->register ('options ' , $ uri , $ method );
172172 }
@@ -177,7 +177,7 @@ public function options(string $uri, string $method = null): ActionProxy
177177 * @param string|null $action
178178 * @return ActionProxy
179179 */
180- public function register (string $ method , string $ uri , string $ action = null ): ActionProxy
180+ public function register (string $ method , string $ uri , ? string $ action = null ): ActionProxy
181181 {
182182 $ action = $ action ?: $ this ->guessControllerAction ($ uri );
183183 $ parameter = $ this ->getParameter ();
0 commit comments