Skip to content

Commit fbc9e7d

Browse files
committed
Update ErrorController.php
1 parent f1f41b2 commit fbc9e7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ErrorController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class ErrorController extends FrontController
2222
/**
2323
* @accees public
2424
* @param int $code
25-
* @param string $error
25+
* @param ?string $error
2626
* @param bool $render, Render error message
2727
*/
28-
public function __construct(int $code = 404, string $error = null, bool $render = true)
28+
public function __construct(int $code = 404, ?string $error = null, bool $render = true)
2929
{
3030
$message = $this->applyFilter('error-message', Response::getMessage($code));
3131

0 commit comments

Comments
 (0)