Skip to content

Commit 0ec424e

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Fix return types for PHP 8.1
2 parents 3dd8ddd + 7f65c44 commit 0ec424e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cloner/Data.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public function getValue($recursive = false)
111111
/**
112112
* @return int
113113
*/
114+
#[\ReturnTypeWillChange]
114115
public function count()
115116
{
116117
return \count($this->getValue());
@@ -119,6 +120,7 @@ public function count()
119120
/**
120121
* @return \Traversable
121122
*/
123+
#[\ReturnTypeWillChange]
122124
public function getIterator()
123125
{
124126
if (!\is_array($value = $this->getValue())) {
@@ -150,6 +152,7 @@ public function __isset(string $key)
150152
/**
151153
* @return bool
152154
*/
155+
#[\ReturnTypeWillChange]
153156
public function offsetExists($key)
154157
{
155158
return $this->__isset($key);
@@ -158,6 +161,7 @@ public function offsetExists($key)
158161
/**
159162
* @return mixed
160163
*/
164+
#[\ReturnTypeWillChange]
161165
public function offsetGet($key)
162166
{
163167
return $this->__get($key);
@@ -166,6 +170,7 @@ public function offsetGet($key)
166170
/**
167171
* @return void
168172
*/
173+
#[\ReturnTypeWillChange]
169174
public function offsetSet($key, $value)
170175
{
171176
throw new \BadMethodCallException(self::class.' objects are immutable.');
@@ -174,6 +179,7 @@ public function offsetSet($key, $value)
174179
/**
175180
* @return void
176181
*/
182+
#[\ReturnTypeWillChange]
177183
public function offsetUnset($key)
178184
{
179185
throw new \BadMethodCallException(self::class.' objects are immutable.');

0 commit comments

Comments
 (0)