Restored some PHP 7.4 support

This commit is contained in:
2022-10-31 12:51:24 +01:00
parent fd2767b642
commit 4b9e6f4c29
3 changed files with 17 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class JsonReader implements ReaderInterface
$flags = ($this->options['bigintAsString']??false)?JSON_BIGINT_AS_STRING:0;
$file = $this->files[$this->currentFile];
$json = @json_decode(@file_get_contents($file), true, flags:$flags);
$json = @json_decode(@file_get_contents($file), true, 512, $flags);
$this->loadData($json);
$this->loadedFile = $this->currentFile;