From 4afda9e23a0e69adb8895ab04dbdc8c2d876dc45 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Thu, 2 Dec 2021 14:09:31 +0100 Subject: [PATCH] Fix PHP 8.1 issues (#567) --- src/AbstractUser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AbstractUser.php b/src/AbstractUser.php index 42f7183e..2d5be864 100644 --- a/src/AbstractUser.php +++ b/src/AbstractUser.php @@ -143,6 +143,7 @@ public function map(array $attributes) * @param string $offset * @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return array_key_exists($offset, $this->user); @@ -154,6 +155,7 @@ public function offsetExists($offset) * @param string $offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->user[$offset]; @@ -166,6 +168,7 @@ public function offsetGet($offset) * @param mixed $value * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->user[$offset] = $value; @@ -177,6 +180,7 @@ public function offsetSet($offset, $value) * @param string $offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->user[$offset]);