mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed phpcs
This commit is contained in:
parent
f621bb7fe5
commit
ed3b15f13b
2 changed files with 11 additions and 2 deletions
|
@ -236,6 +236,8 @@ class ErrorHandler {
|
|||
* @param string $file File on which error occurred
|
||||
* @param int $line Line that triggered the error
|
||||
* @return bool
|
||||
* @throws FatalErrorException If the Exception renderer threw an exception during rendering, and debug > 0.
|
||||
* @throws InternalErrorException If the Exception renderer threw an exception during rendering, and debug is 0.
|
||||
*/
|
||||
public static function handleFatalError($code, $description, $file, $line) {
|
||||
$logMessage = 'Fatal Error (' . $code . '): ' . $description . ' in [' . $file . ', line ' . $line . ']';
|
||||
|
|
|
@ -25,9 +25,16 @@ App::uses('Router', 'Routing');
|
|||
*/
|
||||
class FaultyExceptionRenderer extends ExceptionRenderer {
|
||||
|
||||
/**
|
||||
* Dummy rendering implementation.
|
||||
*
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public function render() {
|
||||
throw new Exception('Error from renderer.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue