ソースを参照

Fix error handler for PHP7 and Cake2.8

Mark Scherer 9 年 前
コミット
d1d1372ea3
1 ファイル変更1 行追加1 行削除
  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",