It seems like $this->filesystem->read($filename) targeting League\Flysystem\FilesystemInterface::read() can also be of type false; however, Venta\Config\Parser\Json::fromString() does only seem to accept string, did you maybe forget to handle an error condition?
Loading history...
37
}
38
39
throw new \RuntimeException(sprintf('Unable to parse configuration file: "%s".', $filename));
40
}
41
42
/**
43
* @inheritDoc
44
*/
45
public function fromString(string $configuration): array
46
{
47
$array = json_decode($configuration, true);
48
if (json_last_error() !== JSON_ERROR_NONE) {
49
throw new \RuntimeException(
50
sprintf('Unable to parse configuration string: "%s".', json_last_error_msg()),