summaryrefslogtreecommitdiffstats
path: root/src/ErrorHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/ErrorHandler.php')
-rw-r--r--src/ErrorHandler.php2
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;