Browse Source

Fix error handler for PHP7 and Cake2.8

Mark Scherer 9 years ago
parent
commit
d1d1372ea3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Lib/Error/MyErrorHandler.php

+ 1 - 1
Lib/Error/MyErrorHandler.php

@@ -11,7 +11,7 @@ class MyErrorHandler extends ErrorHandler {
 	 * - 404s log to a different domain
 	 * - IP, Referer and Browser-Infos are added for better error debugging/tracing
 	 */
-	public static function handleException(Exception $exception) {
+	public static function handleException($exception) {
 		$config = Configure::read('Exception');
 		if (!empty($config['log'])) {
 			$message = sprintf("[%s] %s\n%s\n%s",