Skip to content

Commit 2eea81f

Browse files
committed
Fix Psalm-issues
1 parent f2e1c0f commit 2eea81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Source/Negotiate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function authenticate(array &$state): void
139139
}
140140

141141
Logger::debug('Negotiate - authenticate(): looking for authentication header');
142-
if (!empty($_SERVER['HTTP_AUTHORIZATION'])) {
142+
if (array_key_exists('HTTP_AUTHORIZATION', $_SERVER) && !empty($_SERVER['HTTP_AUTHORIZATION'])) {
143143
Logger::debug('Negotiate - authenticate(): Authentication header found');
144144

145145
Assert::true(is_string($this->spn) || (is_int($this->spn) && ($this->spn === 0)) || is_null($this->spn));

0 commit comments

Comments
 (0)