From 14e62b9a702d74003952bd9ae83af37da2933f2c Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Sun, 28 Jan 2018 17:18:25 +0700 Subject: [PATCH] Fixed exception handler for PHP7. --- src/PHPCensor/Logging/Handler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PHPCensor/Logging/Handler.php b/src/PHPCensor/Logging/Handler.php index 532b1aa3..e2ec1925 100644 --- a/src/PHPCensor/Logging/Handler.php +++ b/src/PHPCensor/Logging/Handler.php @@ -117,18 +117,18 @@ class Handler } /** - * @param \Exception $exception + * @param $exception */ - public function handleException(\Exception $exception) + public function handleException($exception) { $this->log($exception); } /** * Write to the build log. - * @param \Exception $exception + * @param $exception */ - protected function log(\Exception $exception) + protected function log($exception) { if (null !== $this->logger) { $message = sprintf(