diff --git a/composer.json b/composer.json index e8c40a3..01dc753 100644 --- a/composer.json +++ b/composer.json @@ -1,15 +1,14 @@ { "name": "codex-team/hawk.php", "description": "PHP errors Catcher module for Hawk.so", - "keywords": ["hawk", "php", "error", "catcher", "monolog"], + "keywords": ["hawk", "php", "error", "catcher"], "type": "library", - "version": "2.1.9", + "version": "2.2.0", "license": "MIT", "require": { "ext-curl": "*", "ext-json": "*", - "php": "^7.2", - "monolog/monolog": "^2.2", + "php": "^7.2 || ^8.0", "jean85/pretty-package-versions": "^1.5 || ^2.0" }, "require-dev": { diff --git a/src/Monolog/Handler.php b/src/Monolog/Handler.php deleted file mode 100644 index 3d59a06..0000000 --- a/src/Monolog/Handler.php +++ /dev/null @@ -1,36 +0,0 @@ - $record['level'], - 'title' => (new LineFormatter('%message%'))->format($record) - ]; - - if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Throwable) { - $data['exception'] = $record['context']['exception']; - } - - $catcher->sendEvent($data); - } -} diff --git a/tests/Unit/Monolog/HandlerTest.php b/tests/Unit/Monolog/HandlerTest.php deleted file mode 100644 index 945b3c8..0000000 --- a/tests/Unit/Monolog/HandlerTest.php +++ /dev/null @@ -1,20 +0,0 @@ -expectException(\Exception::class); - $this->expectExceptionMessage('Catcher is not initialized'); - - $handler = new Handler(); - $handler->write([]); - } -}