From 237df2e912a08c050a8285f8f7b6637c28fc1e96 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Tue, 14 Dec 2021 17:56:03 +0100 Subject: [PATCH] Add return type mixed to offsetGet Turns out that #175 was not enough to make Symfony happy: ``` Method "ArrayAccess::offsetGet()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "FriendsOfBehat\SymfonyExtension\Mink\MinkParameters" now to avoid errors or add an explicit @return annotation to suppress this message. ``` --- src/Mink/MinkParameters.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mink/MinkParameters.php b/src/Mink/MinkParameters.php index 695bfad..28ae204 100644 --- a/src/Mink/MinkParameters.php +++ b/src/Mink/MinkParameters.php @@ -27,6 +27,9 @@ public function offsetExists($offset): bool return array_key_exists($offset, $this->minkParameters); } + /** + * @return mixed + */ #[ReturnTypeWillChange] public function offsetGet($offset) {