From f267d3c0d45eb64fa4d11f83fd784fc9ef91ff4e Mon Sep 17 00:00:00 2001 From: Bartosz Date: Fri, 27 Oct 2017 09:43:28 +0200 Subject: [PATCH] shouldExceptionCaptureBeSkipped method visibilty Since `skipCapture` property is protected method `shouldExceptionCaptureBeSkipped` should also be protected. Otherwise sometimes if class is extended it must be implemented by copy&paste. --- src/EventListener/ExceptionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/ExceptionListener.php b/src/EventListener/ExceptionListener.php index ed9b5a58..5b878f08 100644 --- a/src/EventListener/ExceptionListener.php +++ b/src/EventListener/ExceptionListener.php @@ -142,7 +142,7 @@ public function onConsoleException(ConsoleExceptionEvent $event) $this->client->captureException($exception, $data); } - private function shouldExceptionCaptureBeSkipped(\Exception $exception) + protected function shouldExceptionCaptureBeSkipped(\Exception $exception) { foreach ($this->skipCapture as $className) { if ($exception instanceof $className) {