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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pkg/fs/FsContext.php‎

Lines changed: 1 addition & 1 deletion
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)