1 | <?php |
||
19 | class ElasticController extends Controller |
||
20 | { |
||
21 | /** |
||
22 | * Data providers to index/spool |
||
23 | * @var string[] |
||
24 | */ |
||
25 | public $dataProviders = []; |
||
26 | /** |
||
27 | * @throws \yii\base\ErrorException |
||
28 | */ |
||
29 | public function actionImport() |
||
38 | |||
39 | /** |
||
40 | * @throws \yii\base\ErrorException |
||
41 | */ |
||
42 | public function actionSpool() |
||
51 | |||
52 | /** |
||
53 | * @param AbstractDataProvider[] $dataProviders |
||
54 | * @throws ErrorException |
||
55 | * @return array |
||
56 | */ |
||
57 | private function createDataProviders(array $dataProviders) |
||
72 | } |
||
73 |
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: