Skip to content

Commit

Permalink
Attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen authored Jan 24, 2022
1 parent 208a084 commit 1476d95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Auth/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,7 @@ private function authzidToDn(string $searchBase, array $searchAttributes, string
*/
public function whoami(string $searchBase, array $searchAttributes): string
{
/** @var string|false $authz_id Suppress Scrutinizer false-positive */
$authz_id = ldap_exop_whoami($this->ldap);
$authz_id = /** @return false|string */ldap_exop_whoami($this->ldap);
if ($authz_id === false) {
throw $this->makeException('LDAP whoami exop failure');
}
Expand Down

0 comments on commit 1476d95

Please sign in to comment.