Skip to content

Commit

Permalink
Fix deprecation issue with PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jun 13, 2023
1 parent 2ea1cb7 commit 5f74c6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Token/RedirectHttpAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ protected function parseProperties(): array
{
$value = $this->getArrayValue($_SERVER, 'REDIRECT_HTTP_AUTHORIZATION');

if (is_null($value)) {
throw new AuthentificationException('Failed to parse token.');
}

if (strtolower(substr($value, 0, 5)) !== 'basic') {
throw new AuthentificationException('Failed to parse token.');
}
Expand Down

0 comments on commit 5f74c6e

Please sign in to comment.