1 | <?php |
||
12 | class InstancesController extends AbstractViewController |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * The index view template path |
||
17 | */ |
||
18 | const TEMPLATE_INDEX = AbstractViewController::TEMPLATE_BASE . '/instances'; |
||
19 | |||
20 | /** |
||
21 | * The upsert view template path |
||
22 | */ |
||
23 | const TEMPLATE_UPSERT = self::TEMPLATE_INDEX . '/upsert'; |
||
24 | |||
25 | /** |
||
26 | * @param null $provider |
||
27 | * @param null $identifier |
||
28 | * @param ProviderInstance|null $instance |
||
29 | * @return \yii\web\Response |
||
30 | * @throws \flipbox\ember\exceptions\NotFoundException |
||
31 | * @throws \yii\base\InvalidConfigException |
||
32 | */ |
||
33 | public function actionUpsert($provider = null, $identifier = null, ProviderInstance $instance = null) |
||
88 | |||
89 | |||
90 | /******************************************* |
||
91 | * BASE VARIABLES |
||
92 | *******************************************/ |
||
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | protected function getBaseCpPath(): string |
||
101 | |||
102 | /** |
||
103 | * @inheritdoc |
||
104 | */ |
||
105 | protected function getBaseActionPath(): string |
||
109 | |||
110 | |||
111 | /******************************************* |
||
112 | * VARIABLES |
||
113 | *******************************************/ |
||
114 | |||
115 | /** |
||
116 | * @param array $variables |
||
117 | * @param Provider $provider |
||
118 | */ |
||
119 | protected function instanceVariables(array &$variables, Provider $provider, ProviderInstance $instance) |
||
138 | } |
||
139 |
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: