| 1 | <?php |
||
| 13 | final class MultiCsFileLoader implements MultiCsFileLoaderInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | const JSON_FILE_NAME = 'multi-cs.json'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $baseDir; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $baseDir |
||
| 27 | */ |
||
| 28 | 4 | public function __construct($baseDir) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 4 | public function load() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 4 | private function getMultiCsFileLocation() |
|
| 51 | } |
||
| 52 |
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: