1 | <?php |
||
11 | class CleanParamClient |
||
12 | { |
||
13 | use DirectiveParserCommons; |
||
14 | |||
15 | /** |
||
16 | * Clean-param |
||
17 | * @var string[] |
||
18 | */ |
||
19 | private $cleanParam = []; |
||
20 | |||
21 | /** |
||
22 | * CleanParamClient constructor. |
||
23 | * |
||
24 | * @param string[] $cleanParam |
||
25 | */ |
||
26 | public function __construct(array $cleanParam) |
||
30 | |||
31 | /** |
||
32 | * Check |
||
33 | * |
||
34 | * @param string $path |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function check($path) |
||
52 | |||
53 | /** |
||
54 | * Export |
||
55 | * |
||
56 | * @return string[] |
||
57 | */ |
||
58 | public function export() |
||
62 | } |
||
63 |
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: