From 2fdd3030e22794d638313a83cf4222ed14407779 Mon Sep 17 00:00:00 2001 From: Kars Frijters Date: Mon, 7 Dec 2015 16:25:14 +0100 Subject: [PATCH] Removed last typehint Exception #7671 Removed last typehint Exception as it was still giving an uncaught typeError message in PHP7 --- lib/Cake/Error/ErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Error/ErrorHandler.php b/lib/Cake/Error/ErrorHandler.php index d99e79cbe..9da40a660 100644 --- a/lib/Cake/Error/ErrorHandler.php +++ b/lib/Cake/Error/ErrorHandler.php @@ -169,11 +169,11 @@ class ErrorHandler { /** * Handles exception logging * - * @param Exception $exception The exception to render. + * @param Exception|ParseError $exception The exception to render. * @param array $config An array of configuration for logging. * @return bool */ - protected static function _log(Exception $exception, $config) { + protected static function _log($exception, $config) { if (empty($config['log'])) { return false; }