| 1 | <?php |
||
| 15 | class ApiResultLoader |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var DataService |
||
| 19 | */ |
||
| 20 | protected $dataService; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ApiResultToCachePersister |
||
| 24 | */ |
||
| 25 | protected $persister; |
||
| 26 | |||
| 27 | public function __construct() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $key |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function load($key) |
||
| 52 | } |
||
| 53 |
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: