Fixed exception handler for PHP7.
This commit is contained in:
parent
40356dccdc
commit
14e62b9a70
1 changed files with 4 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue