From 5b547cdb25825f10251370f57ba5d9d924e6f68e Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 12 Dec 2021 23:02:06 +0000 Subject: [PATCH] PHP 8.1 compatibility fixes --- src/Environment/AbstractVariables.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Environment/AbstractVariables.php b/src/Environment/AbstractVariables.php index 9a9669ab..1485b628 100644 --- a/src/Environment/AbstractVariables.php +++ b/src/Environment/AbstractVariables.php @@ -4,6 +4,7 @@ use Dotenv\Environment\Adapter\ArrayAdapter; use InvalidArgumentException; +use ReturnTypeWillChange; /** * This is the abstract variables implementation. @@ -159,6 +160,7 @@ public function has($name) /** * {@inheritdoc} */ + #[ReturnTypeWillChange] public function offsetExists($offset) { return $this->has($offset); @@ -167,6 +169,7 @@ public function offsetExists($offset) /** * {@inheritdoc} */ + #[ReturnTypeWillChange] public function offsetGet($offset) { return $this->get($offset); @@ -175,6 +178,7 @@ public function offsetGet($offset) /** * {@inheritdoc} */ + #[ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->set($offset, $value); @@ -183,6 +187,7 @@ public function offsetSet($offset, $value) /** * {@inheritdoc} */ + #[ReturnTypeWillChange] public function offsetUnset($offset) { $this->clear($offset);