1 | <?php |
||
16 | class PathDefaultFileLocator extends FileLocator |
||
17 | { |
||
18 | /** |
||
19 | * Expand all path elements with globbing. |
||
20 | * |
||
21 | * @param string $paths |
||
22 | * @return array |
||
23 | */ |
||
24 | 2 | private static function expand($paths) |
|
28 | |||
29 | |||
30 | /** |
||
31 | * Construct the locator based on the passed environment variable. |
||
32 | * |
||
33 | * @param string $envName |
||
34 | * @param array $defaultPaths |
||
35 | */ |
||
36 | 2 | public function __construct($envName, $defaultPaths = array()) |
|
40 | } |
||
41 |
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: