From 2e93cc98e2e8e869f8d9cfa61bb3a99ba4fc4141 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 12 Dec 2021 22:59:22 +0000 Subject: [PATCH 1/2] Update composer.json --- composer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f2293e68..26c9c0f9 100644 --- a/composer.json +++ b/composer.json @@ -6,11 +6,13 @@ "authors": [ { "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk" + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" }, { "name": "Vance Lucas", - "email": "vance@vancelucas.com" + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" } ], "require": { From 5b547cdb25825f10251370f57ba5d9d924e6f68e Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 12 Dec 2021 23:02:06 +0000 Subject: [PATCH 2/2] 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);