We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40edd32 + 4dfed80 commit b5051e9Copy full SHA for b5051e9
2 files changed
src/Saver/FileSaver.php
@@ -19,7 +19,11 @@ public function isSupported()
19
20
public function save(array $data)
21
{
22
- $json = json_encode($data);
+ $json = json_encode($data, PHP_VERSION_ID >= 70200 ? JSON_INVALID_UTF8_IGNORE : 0);
23
+
24
+ if ($json === false) {
25
+ return false;
26
+ }
27
28
return file_put_contents($this->file, $json . PHP_EOL, FILE_APPEND);
29
}
src/Saver/UploadSaver.php
@@ -28,7 +28,12 @@ public function isSupported()
30
31
32
33
34
35
36
37
$this->submit($this->url, $json);
38
39
return true;
0 commit comments