1 | <?php |
||
18 | abstract class AbstractWebPathResolver implements ResolverInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var Filesystem |
||
22 | */ |
||
23 | protected $filesystem; |
||
24 | |||
25 | /** |
||
26 | * @var PathResolverInterface |
||
27 | */ |
||
28 | protected $pathResolver; |
||
29 | |||
30 | /** |
||
31 | * @param Filesystem $filesystem |
||
32 | * @param PathResolverInterface $pathResolver |
||
33 | */ |
||
34 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * Checks whether the given path is stored within this Resolver. |
||
44 | * |
||
45 | * @param string $path |
||
46 | * @param string $filter |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function isStored($path, $filter) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function store(BinaryInterface $binary, $path, $filter) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function remove(array $paths, array $filters) |
||
92 | |||
93 | /** |
||
94 | * @return PathResolverInterface |
||
95 | */ |
||
96 | protected function getPathResolver() |
||
100 | } |
||
101 |
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: