Skip to content

Commit 5b547cd

Browse files
PHP 8.1 compatibility fixes
1 parent b710903 commit 5b547cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Environment/AbstractVariables.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Dotenv\Environment\Adapter\ArrayAdapter;
66
use InvalidArgumentException;
7+
use ReturnTypeWillChange;
78

89
/**
910
* This is the abstract variables implementation.
@@ -159,6 +160,7 @@ public function has($name)
159160
/**
160161
* {@inheritdoc}
161162
*/
163+
#[ReturnTypeWillChange]
162164
public function offsetExists($offset)
163165
{
164166
return $this->has($offset);
@@ -167,6 +169,7 @@ public function offsetExists($offset)
167169
/**
168170
* {@inheritdoc}
169171
*/
172+
#[ReturnTypeWillChange]
170173
public function offsetGet($offset)
171174
{
172175
return $this->get($offset);
@@ -175,6 +178,7 @@ public function offsetGet($offset)
175178
/**
176179
* {@inheritdoc}
177180
*/
181+
#[ReturnTypeWillChange]
178182
public function offsetSet($offset, $value)
179183
{
180184
$this->set($offset, $value);
@@ -183,6 +187,7 @@ public function offsetSet($offset, $value)
183187
/**
184188
* {@inheritdoc}
185189
*/
190+
#[ReturnTypeWillChange]
186191
public function offsetUnset($offset)
187192
{
188193
$this->clear($offset);

0 commit comments

Comments
 (0)