1 | <?php |
||
19 | class ExpressionLanguage extends BaseExpressionLanguage |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @param CacheItemPoolInterface $cache |
||
24 | * @param ExpressionFunctionProviderInterface[] $providers |
||
25 | */ |
||
26 | public function __construct($cache = null, array $providers = []) |
||
35 | |||
36 | /** |
||
37 | * @param ExpressionFunctionProviderInterface[] ...$providers |
||
38 | */ |
||
39 | public function registerProviders(...$providers) |
||
45 | } |
||
46 |
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: