From 62b4539e66bea0c723eb62fc37b858c59597cad3 Mon Sep 17 00:00:00 2001 From: loic Date: Tue, 9 Jun 2026 08:40:02 +0200 Subject: [PATCH 1/2] * Fix esource can be null --- CHANGELOG.md | 3 +++ src/ExceptionsHandler/FilesystemExceptionHandler.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 699edf5..7ad2c35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Version 6.0.1 +* Fix esource can be null + # Version 6.0.0 * Add managing exceptions with a stream diff --git a/src/ExceptionsHandler/FilesystemExceptionHandler.php b/src/ExceptionsHandler/FilesystemExceptionHandler.php index 53cc0c2..40e1e22 100644 --- a/src/ExceptionsHandler/FilesystemExceptionHandler.php +++ b/src/ExceptionsHandler/FilesystemExceptionHandler.php @@ -15,7 +15,7 @@ public function __construct(private readonly Filesystem $filesystem) public function save(?int $jobId, $exceptions): void { - if ($jobId === null || stream_get_contents($exceptions, 1) === false) { + if ($jobId === null || !is_resource($exceptions) || stream_get_contents($exceptions, 1) === false) { return; } From 69bc99e902c40abf773b3fef79ee51be6074db0c Mon Sep 17 00:00:00 2001 From: loic Date: Tue, 9 Jun 2026 08:40:45 +0200 Subject: [PATCH 2/2] * Fix esource can be null --- src/ExceptionsHandler/FilesystemExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExceptionsHandler/FilesystemExceptionHandler.php b/src/ExceptionsHandler/FilesystemExceptionHandler.php index 40e1e22..5134c1c 100644 --- a/src/ExceptionsHandler/FilesystemExceptionHandler.php +++ b/src/ExceptionsHandler/FilesystemExceptionHandler.php @@ -15,7 +15,7 @@ public function __construct(private readonly Filesystem $filesystem) public function save(?int $jobId, $exceptions): void { - if ($jobId === null || !is_resource($exceptions) || stream_get_contents($exceptions, 1) === false) { + if ($jobId === null || !\is_resource($exceptions) || stream_get_contents($exceptions, 1) === false) { return; }