diff options
author | Arnold Daniels <arnold@jasny.net> | 2016-10-29 02:04:24 +0200 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2016-10-29 02:04:24 +0200 |
commit | 9a75bfe0f92d4e3fdf733c76b24c7394355301a0 (patch) | |
tree | 15ed61bd8fd839b4e69db50a865bf2ea552b98d3 /src | |
parent | 763eae6f1e92a6f3b9b94875bec2f19979154da7 (diff) | |
download | error-handler-origin/non-psr-7.zip error-handler-origin/non-psr-7.tar.gz error-handler-origin/non-psr-7.tar.bz2 |
Fixed middleware testsorigin/non-psr-7
Diffstat (limited to 'src')
-rw-r--r-- | src/ErrorHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ErrorHandler.php b/src/ErrorHandler.php index b6cb3a8..9eabfd7 100644 --- a/src/ErrorHandler.php +++ b/src/ErrorHandler.php @@ -72,7 +72,7 @@ class ErrorHandler implements LoggerAwareInterface */ public function setError($error) { - if (!$error instanceof \Error && !$error instanceof \Exception) { + if (isset($error) && !$error instanceof \Error && !$error instanceof \Exception) { $type = (is_object($error) ? get_class($error) . ' ' : '') . gettype($error); trigger_error("Excpeted an Error or Exception, got a $type", E_USER_WARNING); return; |