From 5f8f0a017929d74c127a7756a0d1b5e73d916a59 Mon Sep 17 00:00:00 2001 From: Pavel Zotikov Date: Tue, 8 Oct 2024 20:49:27 +0300 Subject: [PATCH 1/2] Add null check for previous error handler --- src/Handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Handler.php b/src/Handler.php index 236aaee..0e85429 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -203,7 +203,9 @@ public function handleError(int $level, string $message, string $file, int $line if ($event !== null) { $this->send($event); - return false !== ($this->previousErrorHandler)($level, $message, $file, $line); + if (null !== $this->previousErrorHandler) { + return false !== ($this->previousErrorHandler)($level, $message, $file, $line); + } } return false; From a483ba938e9edcb5cbb77d965d7d43cc57cd168d Mon Sep 17 00:00:00 2001 From: Pavel Zotikov Date: Tue, 8 Oct 2024 20:51:29 +0300 Subject: [PATCH 2/2] update version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a93e0bb..5d6000d 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "PHP errors Catcher module for Hawk.so", "keywords": ["hawk", "php", "error", "catcher"], "type": "library", - "version": "2.2.2", + "version": "2.2.3", "license": "MIT", "require": { "ext-curl": "*",