1 | <?php |
||
8 | final class DependencyResolver implements DependencyResolverInterface |
||
9 | { |
||
10 | /** @var CacheInterface */ |
||
11 | private $cache; |
||
12 | |||
13 | public function __construct(CacheInterface $cache) |
||
17 | |||
18 | public function resolveDependencies(string $dependentClass, string $dependentMethod): array |
||
31 | |||
32 | private function getDependenciesKey(string $class, string $method = '__construct'): string |
||
36 | } |
||
37 |
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: