PHP 8.4 fixes - Implicitly nullable parameter declarations deprecated

This commit is contained in:
Andy Miller
2024-10-25 20:12:25 +01:00
parent 1680968442
commit 841ec861bd
6 changed files with 13 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ class LoginController extends AdminController
* @param string|null $token
* @return ResponseInterface
*/
public function displayReset(string $username = null, string $token = null): ResponseInterface
public function displayReset(?string $username = null, ?string $token = null): ResponseInterface
{
if ('' === (string)$username || '' === (string)$token) {
$this->setMessage($this->translate('PLUGIN_ADMIN.RESET_INVALID_LINK'), 'error');
@@ -318,7 +318,7 @@ class LoginController extends AdminController
* @param string|null $token
* @return ResponseInterface
*/
public function taskReset(string $username = null, string $token = null): ResponseInterface
public function taskReset(?string $username = null, ?string $token = null): ResponseInterface
{
$this->page = $this->createPage('reset');
$this->form = $this->getForm('admin-login-reset');