| 1 | <?php |
||
| 17 | class MethodGetScoresDataProvider extends AbstractDataProvider implements MethodScriptDataProviderInterface |
||
| 18 | { |
||
| 19 | /** @var Connection */ |
||
| 20 | protected $connection; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * MethodGetStoresDataProvider constructor. |
||
| 24 | * |
||
| 25 | * @param Connection $connection |
||
| 26 | */ |
||
| 27 | public function __construct(Connection $connection) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | * |
||
| 35 | * @param string $pluginId |
||
| 36 | * @param AbstractScriptMethod $pluginService |
||
| 37 | */ |
||
| 38 | public function registerPlugin($pluginId, $pluginService) |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * Request call to fetch scores. |
||
| 48 | * |
||
| 49 | * @return null |
||
| 50 | */ |
||
| 51 | public function request() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set scores. |
||
| 58 | * |
||
| 59 | * @param array $params |
||
| 60 | */ |
||
| 61 | public function setScores($params) |
||
| 65 | } |
||
| 66 |
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: