| 1 | <?php |
||
| 2 | class AreasAPI extends ProfilesAdminDataAPI |
||
| 3 | { |
||
| 4 | public function __construct() |
||
| 8 | |||
| 9 | public function setup($app) |
||
| 14 | |||
| 15 | protected function canCreate($request) |
||
| 20 | |||
| 21 | protected function canUpdate($request, $entity) |
||
| 26 | |||
| 27 | public function getLeads($request, $response, $args) |
||
| 40 | } |
||
| 41 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
| 42 |
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: