Skip to content
Permalink
Browse files

Allow ParseError as exception and remove typehint.

  • Loading branch information...
dereuromark committed Nov 9, 2015
1 parent ddfb7d6 commit 7982b6b078da74474f50aea776d4f623c7763e16
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/Cake/Error/ErrorHandler.php
  2. +2 −2 lib/Cake/Error/ExceptionRenderer.php
@@ -109,11 +109,11 @@ class ErrorHandler {
* This will either use custom exception renderer class if configured,
* or use the default ExceptionRenderer.
*
* @param Exception $exception The exception to render.
* @param Exception|ParseError $exception The exception to render.
* @return void
* @see http://php.net/manual/en/function.set-exception-handler.php
*/
public static function handleException(Exception $exception) {
public static function handleException($exception) {
$config = Configure::read('Exception');
static::_log($exception, $config);
@@ -86,9 +86,9 @@ class ExceptionRenderer {
* If the error is a CakeException it will be converted to either a 400 or a 500
* code error depending on the code used to construct the error.
*
* @param Exception $exception Exception
* @param Exception|ParseError $exception Exception
*/
public function __construct(Exception $exception) {
public function __construct($exception) {
$this->controller = $this->_getController($exception);
if (method_exists($this->controller, 'appError')) {

0 comments on commit 7982b6b

Please sign in to comment.
You can’t perform that action at this time.