Skip to content

Commit dfea18e

Browse files
authored
Merge pull request #671 from ssiergl/fix-deprecation
[fs] Do not throw error in jsonUnserialize on deprecation notice
2 parents ce8414d + f9bd13f commit dfea18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/fs/FsContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function workWithFile(FsDestination $destination, string $mode, callable
105105

106106
set_error_handler(function ($severity, $message, $file, $line) {
107107
throw new \ErrorException($message, 0, $severity, $file, $line);
108-
});
108+
}, E_ALL & ~E_USER_DEPRECATED);
109109

110110
try {
111111
$file = fopen((string) $destination->getFileInfo(), $mode);

0 commit comments

Comments
 (0)