1 | <?php |
||
9 | abstract class AbstractWebPathResolver implements ResolverInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var Filesystem |
||
13 | */ |
||
14 | protected $filesystem; |
||
15 | |||
16 | /** |
||
17 | * @var PathResolverInterface |
||
18 | */ |
||
19 | protected $pathResolver; |
||
20 | |||
21 | /** |
||
22 | * @param Filesystem $filesystem |
||
23 | * @param PathResolverInterface $pathResolver |
||
24 | */ |
||
25 | public function __construct( |
||
32 | |||
33 | /** |
||
34 | * Checks whether the given path is stored within this Resolver. |
||
35 | * |
||
36 | * @param string $path |
||
37 | * @param string $filter |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function isStored($path, $filter) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function store(BinaryInterface $binary, $path, $filter) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function remove(array $paths, array $filters) |
||
83 | |||
84 | /** |
||
85 | * @return PathResolverInterface |
||
86 | */ |
||
87 | protected function getPathResolver() |
||
91 | } |
||
92 |
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: