Skip to content

Commit

Permalink
PHP 8.1 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 12, 2021
1 parent b710903 commit 5b547cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Environment/AbstractVariables.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Dotenv\Environment\Adapter\ArrayAdapter;
use InvalidArgumentException;
use ReturnTypeWillChange;

/**
* This is the abstract variables implementation.
Expand Down Expand Up @@ -159,6 +160,7 @@ public function has($name)
/**
* {@inheritdoc}
*/
#[ReturnTypeWillChange]
public function offsetExists($offset)
{
return $this->has($offset);
Expand All @@ -167,6 +169,7 @@ public function offsetExists($offset)
/**
* {@inheritdoc}
*/
#[ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->get($offset);
Expand All @@ -175,6 +178,7 @@ public function offsetGet($offset)
/**
* {@inheritdoc}
*/
#[ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->set($offset, $value);
Expand All @@ -183,6 +187,7 @@ public function offsetSet($offset, $value)
/**
* {@inheritdoc}
*/
#[ReturnTypeWillChange]
public function offsetUnset($offset)
{
$this->clear($offset);
Expand Down

0 comments on commit 5b547cd

Please sign in to comment.