Skip to content

Commit c8cde89

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Fix return types for PHP 8.1
2 parents 9fde87c + c91a18c commit c8cde89

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
@@ -1114,6 +1114,7 @@ public function getNode(int $position)
11141114
/**
11151115
* @return int
11161116
*/
1117+
#[\ReturnTypeWillChange]
11171118
public function count()
11181119
{
11191120
return \count($this->nodes);
@@ -1122,6 +1123,7 @@ public function count()
11221123
/**
11231124
* @return \ArrayIterator|\DOMNode[]
11241125
*/
1126+
#[\ReturnTypeWillChange]
11251127
public function getIterator()
11261128
{
11271129
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)