@@ -293,7 +293,7 @@ public function run()
293
293
* @param string|null $name
294
294
* @return void
295
295
*/
296
- public function registerRoute (string $ httMethod , string $ path , string $ controller , string $ method , ?string $ name = null ) : void
296
+ public function registerRoute (string $ httMethod , string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
297
297
{
298
298
// Creating route
299
299
$ route = $ this ->createRoute ($ httMethod , $ path , $ controller , $ method , $ name );
@@ -319,7 +319,7 @@ public function registerRoute(string $httMethod, string $path, string $controlle
319
319
* @param string|null $name
320
320
* @return void
321
321
*/
322
- public function get (string $ path , string $ controller , string $ method , ?string $ name = null ) : void
322
+ public function get (string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
323
323
{
324
324
$ this ->registerRoute ('get ' , $ path , $ controller , $ method , $ name );
325
325
}
@@ -333,7 +333,7 @@ public function get(string $path, string $controller, string $method, ?string $n
333
333
* @param string|null $name
334
334
* @return void
335
335
*/
336
- public function post (string $ path , string $ controller , string $ method , ?string $ name = null ) : void
336
+ public function post (string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
337
337
{
338
338
$ this ->registerRoute ('post ' , $ path , $ controller , $ method , $ name );
339
339
}
@@ -347,7 +347,7 @@ public function post(string $path, string $controller, string $method, ?string $
347
347
* @param string|null $name
348
348
* @return void
349
349
*/
350
- public function put (string $ path , string $ controller , string $ method , ?string $ name = null ) : void
350
+ public function put (string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
351
351
{
352
352
$ this ->registerRoute ('put ' , $ path , $ controller , $ method , $ name );
353
353
}
@@ -361,7 +361,7 @@ public function put(string $path, string $controller, string $method, ?string $n
361
361
* @param string|null $name
362
362
* @return void
363
363
*/
364
- public function patch (string $ path , string $ controller , string $ method , ?string $ name = null ) : void
364
+ public function patch (string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
365
365
{
366
366
$ this ->registerRoute ('patch ' , $ path , $ controller , $ method , $ name );
367
367
}
@@ -375,7 +375,7 @@ public function patch(string $path, string $controller, string $method, ?string
375
375
* @param string|null $name
376
376
* @return void
377
377
*/
378
- public function delete (string $ path , string $ controller , string $ method , ?string $ name = null ) : void
378
+ public function delete (string $ path , string $ controller , string $ method , ?string $ name = '' ) : void
379
379
{
380
380
$ this ->registerRoute ('delete ' , $ path , $ controller , $ method , $ name );
381
381
}
0 commit comments