From eebf23a21d465138e606f1803eec400205469307 Mon Sep 17 00:00:00 2001 From: Bart Reunes Date: Wed, 5 Jun 2024 14:04:47 +0200 Subject: [PATCH] Add return types for ArrayAccess in docblocks (#1319) --- src/SDK/Common/Attribute/AttributesBuilder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SDK/Common/Attribute/AttributesBuilder.php b/src/SDK/Common/Attribute/AttributesBuilder.php index bb3533076..59973e629 100644 --- a/src/SDK/Common/Attribute/AttributesBuilder.php +++ b/src/SDK/Common/Attribute/AttributesBuilder.php @@ -49,6 +49,7 @@ public function offsetExists($offset): bool /** * @phan-suppress PhanUndeclaredClassAttribute + * @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($offset) @@ -58,6 +59,7 @@ public function offsetGet($offset) /** * @phan-suppress PhanUndeclaredClassAttribute + * @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -90,6 +92,7 @@ public function offsetSet($offset, $value) /** * @phan-suppress PhanUndeclaredClassAttribute + * @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset)