1 | <?php |
||
10 | class CompassFilter extends Filter |
||
11 | { |
||
12 | /** |
||
13 | * Compile scss file into css file via compass. |
||
14 | * |
||
15 | * @param SplFileInfo[] $sources |
||
16 | * @param SplFileInfo[] $destinations |
||
17 | * @return SplFileInfo[] |
||
18 | * @throws Exception |
||
19 | */ |
||
20 | public function run(array $sources, array $destinations) |
||
50 | |||
51 | /** |
||
52 | * Check that compass is installed and available. |
||
53 | * |
||
54 | * @throws Exception |
||
55 | */ |
||
56 | public function checkRequirements() |
||
65 | |||
66 | /** |
||
67 | * Return the file extensions supported by this filter. |
||
68 | * |
||
69 | * @return string[] |
||
70 | */ |
||
71 | public function getSupportedExtensions() |
||
77 | |||
78 | /** |
||
79 | * Get the binary path. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | protected function getBin() |
||
89 | |||
90 | /** |
||
91 | * Build the compass compile command line. |
||
92 | * |
||
93 | * @param SplFileInfo $source |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function buildCommandString($source) |
||
116 | } |
||
117 |
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: