- Fixed some mistyped variables

This commit is contained in:
Dave Mc Nicoll 2026-06-17 20:59:55 +00:00
parent d149e0a741
commit 2e7b46eae6
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class HeaderAuthenticationMiddleware implements MiddlewareInterface
protected Authenticate $authorize,
protected UserInterface $entity,
protected \Closure $loginFailedResponse,
HeaderAuthentication $authenticator = null,
? HeaderAuthentication $authenticator = null,
) {
$this->authenticator = $authenticator ?: new HeaderAuthentication($authorize);
}

View File

@ -19,7 +19,7 @@ class PostRequestAuthenticationMiddleware implements MiddlewareInterface
public function __construct(
protected UserInterface $entity,
protected \Closure $loginFailedResponse,
PostRequestAuthentication $authenticator = null,
? PostRequestAuthentication $authenticator = null,
) {
$this->authenticator = $authenticator ?: new PostRequestAuthentication(new Authenticate($entity));
}