MediaWiki master
MediaWiki\Rest\Reporter\PHPErrorReporter Class Reference

Error reporter based on php's native trigger_error() method. More...

Inherits MediaWiki\Rest\Reporter\ErrorReporter.

Collaboration diagram for MediaWiki\Rest\Reporter\PHPErrorReporter:

Public Member Functions

 __construct (private readonly int $level=E_USER_WARNING,)
 reportError (Throwable $error, ?Handler $handler, RequestInterface $request)

Detailed Description

Error reporter based on php's native trigger_error() method.

Since
1.38

Definition at line 13 of file PHPErrorReporter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\Reporter\PHPErrorReporter::__construct ( private readonly int $level = E_USER_WARNING)
Parameters
int$levelThe error level to pass to trigger_error

Definition at line 18 of file PHPErrorReporter.php.

Member Function Documentation

◆ reportError()

MediaWiki\Rest\Reporter\PHPErrorReporter::reportError ( Throwable $error,
?Handler $handler,
RequestInterface $request )
Parameters
Throwable$error
Handler | null$handler
RequestInterface$request

Implements MediaWiki\Rest\Reporter\ErrorReporter.

Definition at line 28 of file PHPErrorReporter.php.

References $request.


The documentation for this class was generated from the following file: