Fixed exception handler for PHP7.

This commit is contained in:
Dmitry Khomutov 2018-01-28 17:18:25 +07:00
commit 14e62b9a70
No known key found for this signature in database
GPG key ID: EC19426474B37AAC

View file

@ -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(