@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | * Check if value is matching a certain type of values. |
| 89 | 89 | * |
| 90 | 90 | * @param string $value the value to check. |
| 91 | - * @param array $type the expected type to check against. |
|
| 91 | + * @param string $type the expected type to check against. |
|
| 92 | 92 | * |
| 93 | - * @return boolean |
|
| 93 | + * @return boolean|null |
|
| 94 | 94 | */ |
| 95 | 95 | private function checkPartMatchingType($value, $type) |
| 96 | 96 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * conversion accordingly. |
| 124 | 124 | * |
| 125 | 125 | * @param string $value the value to check. |
| 126 | - * @param array $type the expected type to check against. |
|
| 126 | + * @param string|null $type the expected type to check against. |
|
| 127 | 127 | * |
| 128 | 128 | * @return boolean |
| 129 | 129 | */ |
@@ -367,7 +367,6 @@ discard block |
||
| 367 | 367 | /** |
| 368 | 368 | * Shortcut to add a GET route. |
| 369 | 369 | * |
| 370 | - * @param null|string|array $method as request methods |
|
| 371 | 370 | * @param null|string|callable $action a callback handler for the route. |
| 372 | 371 | * |
| 373 | 372 | * @return class|array as new route(s), class if one added, else array. |
@@ -382,7 +381,6 @@ discard block |
||
| 382 | 381 | /** |
| 383 | 382 | * Shortcut to add a POST route. |
| 384 | 383 | * |
| 385 | - * @param null|string|array $method as request methods |
|
| 386 | 384 | * @param null|string|callable $action a callback handler for the route. |
| 387 | 385 | * |
| 388 | 386 | * @return class|array as new route(s), class if one added, else array. |
@@ -397,7 +395,6 @@ discard block |
||
| 397 | 395 | /** |
| 398 | 396 | * Shortcut to add a PUT route. |
| 399 | 397 | * |
| 400 | - * @param null|string|array $method as request methods |
|
| 401 | 398 | * @param null|string|callable $action a callback handler for the route. |
| 402 | 399 | * |
| 403 | 400 | * @return class|array as new route(s), class if one added, else array. |
@@ -412,7 +409,6 @@ discard block |
||
| 412 | 409 | /** |
| 413 | 410 | * Shortcut to add a DELETE route. |
| 414 | 411 | * |
| 415 | - * @param null|string|array $method as request methods |
|
| 416 | 412 | * @param null|string|callable $action a callback handler for the route. |
| 417 | 413 | * |
| 418 | 414 | * @return class|array as new route(s), class if one added, else array. |
@@ -427,7 +423,7 @@ discard block |
||
| 427 | 423 | /** |
| 428 | 424 | * Get the route for the last route that was handled. |
| 429 | 425 | * |
| 430 | - * @return mixed |
|
| 426 | + * @return string |
|
| 431 | 427 | */ |
| 432 | 428 | public function getLastRoute() |
| 433 | 429 | { |