diff --git a/ErrorHandler.php b/ErrorHandler.php
index <HASH>..<HASH> 100644
--- a/ErrorHandler.php
+++ b/ErrorHandler.php
@@ -230,6 +230,11 @@ class ErrorHandler
 	 */
 	public function handleError($errNo, $errStr, $errFile, $errLine, $errContext = array(), Metadata $metadata = null)
 	{
+		if (0 === error_reporting())
+		{
+			return $this;
+		}
+
 		$error      = new ErrorException($errStr, $errNo, $errFile, $errLine, $errContext);
 		$metadata   = $this->getMetadata($metadata, $error);
 		$categories = $metadata->getCategories();
don't do anything when error_reporting === 0