Skip to content

Commit a6b5f66

Browse files
authored
Allow ApiGuard to return null
1 parent 9099576 commit a6b5f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth/ApiGuard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function attempt(array $credentials = []): bool
4141
}
4242

4343
/**
44-
* @return string
44+
* @return stringi|null
4545
*/
46-
public function getTokenForRequest(): string
46+
public function getTokenForRequest(): ?string
4747
{
4848
return $this->request->header(NappHttpHeaders::NAPP_API_KEY);
4949
}

0 commit comments

Comments
 (0)