1 | <?php |
||
25 | class PatronConnection extends AbstractSaveableConnection implements SavableConnectionInterface |
||
26 | { |
||
27 | use AccessTokenAuthorizationTrait; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | public $version; |
||
33 | |||
34 | /** |
||
35 | * @var string|int |
||
36 | */ |
||
37 | public $provider; |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public static function displayName(): string |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function rules() |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | * @throws \Throwable |
||
79 | */ |
||
80 | public function afterSave(bool $isNew, array $changedAttributes) |
||
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | * @throws \yii\base\InvalidConfigException |
||
102 | */ |
||
103 | public function getResourceUrl(): string |
||
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | * |
||
115 | * @throws \Twig_Error_Loader |
||
116 | * @throws \yii\base\Exception |
||
117 | */ |
||
118 | public function getSettingsHtml(): string |
||
132 | |||
133 | /** |
||
134 | * @param bool $restricted |
||
135 | * @return Provider |
||
136 | */ |
||
137 | protected function getRecord(bool $restricted = true): Provider |
||
160 | |||
161 | /** |
||
162 | * @inheritdoc |
||
163 | * @throws \yii\base\InvalidConfigException |
||
164 | */ |
||
165 | public function getInstanceUrl(): string |
||
169 | |||
170 | /** |
||
171 | * @param RequestInterface $request |
||
172 | * @return RequestInterface |
||
173 | * @throws \yii\base\InvalidConfigException |
||
174 | */ |
||
175 | public function prepareInstanceRequest(RequestInterface $request): RequestInterface |
||
187 | } |
||
188 |
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: