1 | <?php |
||
11 | class PageController extends \Api\Controller\RestController |
||
12 | { |
||
13 | /** |
||
14 | * Action responsible to display info about single page entity. |
||
15 | * |
||
16 | * @return \Phalcon\Http\ResponseInterface |
||
17 | * @throws \Api\Exception\NotImplementedException |
||
18 | */ |
||
19 | public function getAction() |
||
34 | |||
35 | /** |
||
36 | * Action responsible to display a list of pages with required data. |
||
37 | * |
||
38 | * @return \Phalcon\Http\ResponseInterface |
||
39 | * @throws \Api\Exception\NotImplementedException |
||
40 | */ |
||
41 | public function listAction() |
||
49 | } |
||
50 |
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: