Skip to content

Commit 62b4539

Browse files
committed
* Fix esource can be null
1 parent a40600c commit 62b4539

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Version 6.0.1
2+
* Fix esource can be null
3+
14
# Version 6.0.0
25
* Add managing exceptions with a stream
36

src/ExceptionsHandler/FilesystemExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(private readonly Filesystem $filesystem)
1515

1616
public function save(?int $jobId, $exceptions): void
1717
{
18-
if ($jobId === null || stream_get_contents($exceptions, 1) === false) {
18+
if ($jobId === null || !is_resource($exceptions) || stream_get_contents($exceptions, 1) === false) {
1919
return;
2020
}
2121

0 commit comments

Comments
 (0)