From bc904359316a0304111ffcc6ff5e40720f121ebb Mon Sep 17 00:00:00 2001 From: Christian Stoller Date: Wed, 24 Apr 2024 15:05:30 +0200 Subject: [PATCH] Fixed deprecation messages --- src/Container.php | 2 ++ src/Message/PartChildrenContainer.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Container.php b/src/Container.php index 92b74710..26ef29d3 100644 --- a/src/Container.php +++ b/src/Container.php @@ -92,6 +92,8 @@ public function offsetExists($id) : bool * * @param string | int $id * + * @return mixed The value of the parameter or an object + * * @throws UnknownIdentifierException */ #[\ReturnTypeWillChange] diff --git a/src/Message/PartChildrenContainer.php b/src/Message/PartChildrenContainer.php index f629fc85..a176ccd5 100644 --- a/src/Message/PartChildrenContainer.php +++ b/src/Message/PartChildrenContainer.php @@ -128,6 +128,9 @@ public function offsetExists($offset) : bool return isset($this->children[$offset]); } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function offsetGet($offset) {