ErrorRendererInterface
in
Interface for PHP error rendering implementations
The core provided implementations of this interface are used by Debugger and ErrorTrap to render PHP errors.
Table of Contents
Methods
- render() : string
- Render output for the provided error.
- write() : void
- Write output to the renderer's output stream
Methods
render()
Render output for the provided error.
public
render(PhpError $error, bool $debug) : string
Parameters
- $error : PhpError
-
The error to be rendered.
- $debug : bool
-
Whether or not the application is in debug mode.
Return values
string —The output to be echoed.
write()
Write output to the renderer's output stream
public
write(string $out) : void
Parameters
- $out : string
-
The content to output.