From 99439e839bfbaa642c9bca903c20342e41965817 Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Tue, 30 Nov 2021 13:26:40 -0500 Subject: [PATCH] Add PHP8.1 ReturnTypeWillChange attribute to support test classes Co-Authored-By: Jake Bathman Co-Authored-By: Jamison Valenta <2752727+jamisonvalenta@users.noreply.github.com> --- tests/Support/SupportCollectionTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Support/SupportCollectionTest.php b/tests/Support/SupportCollectionTest.php index 28f05639a4ab..efbbb973b8ab 100755 --- a/tests/Support/SupportCollectionTest.php +++ b/tests/Support/SupportCollectionTest.php @@ -4970,21 +4970,25 @@ public function __construct($arr) $this->arr = $arr; } + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->arr[$offset]); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->arr[$offset]; } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->arr[$offset] = $value; } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->arr[$offset]);