diff --git a/lib/Doctrine/Common/Collections/AbstractLazyCollection.php b/lib/Doctrine/Common/Collections/AbstractLazyCollection.php index 5958d9fc..b7b84c69 100644 --- a/lib/Doctrine/Common/Collections/AbstractLazyCollection.php +++ b/lib/Doctrine/Common/Collections/AbstractLazyCollection.php @@ -327,6 +327,8 @@ public function offsetGet($offset) * * @param mixed $value * @psalm-param TKey $offset + * + * @return void */ #[ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -339,6 +341,8 @@ public function offsetSet($offset, $value) * {@inheritDoc} * * @psalm-param TKey $offset + * + * @return void */ #[ReturnTypeWillChange] public function offsetUnset($offset) diff --git a/lib/Doctrine/Common/Collections/ArrayCollection.php b/lib/Doctrine/Common/Collections/ArrayCollection.php index 2f5bea1b..df04f984 100644 --- a/lib/Doctrine/Common/Collections/ArrayCollection.php +++ b/lib/Doctrine/Common/Collections/ArrayCollection.php @@ -183,6 +183,8 @@ public function offsetExists($offset) * {@inheritDoc} * * @psalm-param TKey $offset + * + * @return mixed */ #[ReturnTypeWillChange] public function offsetGet($offset) @@ -194,6 +196,8 @@ public function offsetGet($offset) * Required by interface ArrayAccess. * * {@inheritDoc} + * + * @return void */ #[ReturnTypeWillChange] public function offsetSet($offset, $value) @@ -213,6 +217,8 @@ public function offsetSet($offset, $value) * {@inheritDoc} * * @psalm-param TKey $offset + * + * @return void */ #[ReturnTypeWillChange] public function offsetUnset($offset)