Skip to content

Commit f9bd13f

Browse files
committed
[fs] Do not throw error in jsonUnserialize on deprecation notice
Caused by queue-interop package [ErrorException] The "Enqueue\Fs\FsMessage" class implements "Interop\Queue\PsrMessage" that is deprecated will be removed in later versions. use one without Psr prefix. * The Message interface is the root interface of all transport messages. Most message-oriented middleware (MOM) products treat messages as lightweight entities that consist of a header and a payload. The header contains fields used for message routing an d identification; the payload contains the application data being sent. * Within this general form, the definition of a message varies significantly across products. thrown here: https://github.com/ssiergl/enqueue-dev/blob/master/pkg/fs/FsConsumer.php#L131
1 parent ce8414d commit f9bd13f

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)