Skip to content

Commit

Permalink
Merge pull request #2 from shadowhand/patch-1
Browse files Browse the repository at this point in the history
Return previous error and exception handlers
  • Loading branch information
victorstanciu committed Oct 2, 2018
2 parents 65c1ba5 + dceb89e commit f6ef8e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/System/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ private function __construct()

public function setErrorHandler(callable $handler)
{
set_error_handler($handler);
return set_error_handler($handler);
}

public function setExceptionHandler(callable $handler)
{
set_exception_handler($handler);
return set_exception_handler($handler);
}

public function registerShutdownFunction(callable $handler)
Expand Down Expand Up @@ -187,4 +187,4 @@ public static function getInstance()
}
return self::$instance;
}
}
}

0 comments on commit f6ef8e4

Please sign in to comment.