chore: Adapt syntax for PHP<8

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-04-23 11:22:56 +02:00
parent b2ba4c8d40
commit 54fc2caf0d
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -454,7 +454,7 @@ class Session implements IUserSession, Emitter {
// Refuse session tokens here, only app tokens are handled
return false;
}
} catch (ExpiredTokenException) {
} catch (ExpiredTokenException $e) {
// Just return on an expired token no need to check further or record a failed login
return false;
}