mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
psalm fixes
This commit is contained in:
parent
3a87f21b83
commit
4c8e50f141
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ class KerberosApacheAuth extends KerberosAuth implements IAuth {
|
|||
* Check if a valid kerberos ticket is present
|
||||
*
|
||||
* @return bool
|
||||
* @psalm-assert-if-true string $this->ticketName
|
||||
*/
|
||||
public function checkTicket(): bool {
|
||||
//read apache kerberos ticket cache
|
||||
|
|
@ -87,6 +88,7 @@ class KerberosApacheAuth extends KerberosAuth implements IAuth {
|
|||
|
||||
$krb5 = new \KRB5CCache();
|
||||
$krb5->open($this->ticketName);
|
||||
/** @psalm-suppress MixedArgument */
|
||||
return count($krb5->getEntries()) > 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue