1 | <?php |
||
9 | class AnalyticsClientFactory |
||
10 | { |
||
11 | public static function createForConfig(array $analyticsConfig) |
||
19 | |||
20 | public static function createAuthenticatedGoogleClient(array $config): Google_Client |
||
33 | |||
34 | protected static function createAnalyticsClient(array $analyticsConfig, Google_Service_Analytics $googleService): AnalyticsClient |
||
42 | } |
||
43 |
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: