| 1 | <?php |
||
| 24 | final class DefaultController |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Index action. |
||
| 28 | * |
||
| 29 | * @return bool|string |
||
| 30 | */ |
||
| 31 | public function indexAction() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Not found action. |
||
| 40 | * |
||
| 41 | * @return bool|string |
||
| 42 | */ |
||
| 43 | public function notFoundAction() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Page action. |
||
| 52 | * |
||
| 53 | * @return bool|string |
||
| 54 | */ |
||
| 55 | public function pageAction() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Attachment action. |
||
| 65 | * |
||
| 66 | * @return bool|string |
||
| 67 | */ |
||
| 68 | public function attachmentAction() |
||
| 76 | } |
||
| 77 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: