| 1 | <?php |
||
| 15 | final class MultiCsFileLoader |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $multiCsJsonFile; |
||
| 21 | |||
| 22 | 1 | public function __construct(string $multiCsJsonFile = null) |
|
| 23 | { |
||
| 24 | 1 | $this->multiCsJsonFile = $multiCsJsonFile ?: getcwd().DIRECTORY_SEPARATOR.'multi-cs.json'; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | 1 | public function load() : array |
|
| 35 | |||
| 36 | 1 | private function ensureFileExists(string $multiCsJsonFile) |
|
| 48 | } |
||
| 49 |
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: