Skip to content

Commit c91a18c

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Fix return types for PHP 8.1
2 parents 2dd8890 + 37dea6c commit c91a18c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Crawler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ public function getNode(int $position)
11121112
/**
11131113
* @return int
11141114
*/
1115+
#[\ReturnTypeWillChange]
11151116
public function count()
11161117
{
11171118
return \count($this->nodes);
@@ -1120,6 +1121,7 @@ public function count()
11201121
/**
11211122
* @return \ArrayIterator|\DOMNode[]
11221123
*/
1124+
#[\ReturnTypeWillChange]
11231125
public function getIterator()
11241126
{
11251127
return new \ArrayIterator($this->nodes);

Form.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ public function all()
315315
*
316316
* @return bool true if the field exists, false otherwise
317317
*/
318+
#[\ReturnTypeWillChange]
318319
public function offsetExists($name)
319320
{
320321
return $this->has($name);
@@ -329,6 +330,7 @@ public function offsetExists($name)
329330
*
330331
* @throws \InvalidArgumentException if the field does not exist
331332
*/
333+
#[\ReturnTypeWillChange]
332334
public function offsetGet($name)
333335
{
334336
return $this->fields->get($name);
@@ -344,6 +346,7 @@ public function offsetGet($name)
344346
*
345347
* @throws \InvalidArgumentException if the field does not exist
346348
*/
349+
#[\ReturnTypeWillChange]
347350
public function offsetSet($name, $value)
348351
{
349352
$this->fields->set($name, $value);
@@ -356,6 +359,7 @@ public function offsetSet($name, $value)
356359
*
357360
* @return void
358361
*/
362+
#[\ReturnTypeWillChange]
359363
public function offsetUnset($name)
360364
{
361365
$this->fields->remove($name);

0 commit comments

Comments
 (0)