Rename errorhandler

This commit is contained in:
Sebastian Meyer 2023-11-12 15:56:57 +01:00
parent a970ffaf9c
commit 39d6cd31e6
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ use ErrorException;
/** /**
* Handles an internal PHP error and throws it as ErrorException. * Handles an internal PHP error and throws it as ErrorException.
* @example set_error_handler('\\OCC\\Basics\\Functions\\throwError', E_ALL); * @example set_error_handler('\\OCC\\Basics\\Functions\\throwErrorException');
* *
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com> * @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/basics * @package opencultureconsulting/basics
@ -40,7 +40,7 @@ use ErrorException;
* *
* @throws \ErrorException * @throws \ErrorException
*/ */
function throwError(int $severity = E_ALL, string $message = '', ?string $filename = null, ?int $line = null): bool function throwErrorException(int $severity = E_ALL, string $message = '', ?string $filename = null, ?int $line = null): bool
{ {
if (error_reporting() & $severity) { if (error_reporting() & $severity) {
throw new ErrorException($message, 0, $severity, $filename, $line); throw new ErrorException($message, 0, $severity, $filename, $line);