Skip to content
Snippets Groups Projects
Commit 95d2db85 authored by Peter Wolanin's avatar Peter Wolanin
Browse files

Issue #3275651 by pwolanin: Fix errors on php 8.1

parent 9b11b8c8
No related branches found
No related tags found
No related merge requests found
......@@ -143,14 +143,15 @@ class UsersJwtKeyRepository implements UsersJwtKeyRepositoryInterface {
/**
* {@inheritdoc}
*/
public function offsetExists($offset) {
public function offsetExists($offset): bool {
return (bool) $this->getKey($offset);
}
/**
* {@inheritdoc}
*/
public function offsetGet($offset) {
#[\ReturnTypeWillChange]
public function offsetGet($offset): ?string {
$key = $this->getKey($offset);
return $key ? $key->pubkey : NULL;
}
......@@ -158,11 +159,11 @@ class UsersJwtKeyRepository implements UsersJwtKeyRepositoryInterface {
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value) {}
public function offsetSet($offset, $value): void {}
/**
* {@inheritdoc}
*/
public function offsetUnset($offset) {}
public function offsetUnset($offset): void {}
}
......@@ -85,6 +85,7 @@ interface UsersJwtKeyRepositoryInterface extends \ArrayAccess {
* @return string|null
* The public key for a key ID, or null if there is no such key.
*/
public function offsetGet($id);
#[\ReturnTypeWillChange]
public function offsetGet($id): ?string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment