Skip to content

Commit 0fb01ea

Browse files
mattstaufferjakebathmanjamisonvalenta
authored
Add PHP8.1 ReturnTypeWillChange attribute to support test classes (#39842)
Co-Authored-By: Jake Bathman <[email protected]> Co-Authored-By: Jamison Valenta <[email protected]> Co-authored-by: Jake Bathman <[email protected]> Co-authored-by: Jamison Valenta <[email protected]>
1 parent a8f4304 commit 0fb01ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Support/SupportCollectionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4970,21 +4970,25 @@ public function __construct($arr)
49704970
$this->arr = $arr;
49714971
}
49724972

4973+
#[\ReturnTypeWillChange]
49734974
public function offsetExists($offset)
49744975
{
49754976
return isset($this->arr[$offset]);
49764977
}
49774978

4979+
#[\ReturnTypeWillChange]
49784980
public function offsetGet($offset)
49794981
{
49804982
return $this->arr[$offset];
49814983
}
49824984

4985+
#[\ReturnTypeWillChange]
49834986
public function offsetSet($offset, $value)
49844987
{
49854988
$this->arr[$offset] = $value;
49864989
}
49874990

4991+
#[\ReturnTypeWillChange]
49884992
public function offsetUnset($offset)
49894993
{
49904994
unset($this->arr[$offset]);

0 commit comments

Comments
 (0)