Skip to content

Commit 2da38bf

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix return types for PHP 8.1
2 parents 490fe1c + c8cde89 commit 2da38bf

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
@@ -1076,6 +1076,7 @@ public function getNode(int $position)
10761076
/**
10771077
* @return int
10781078
*/
1079+
#[\ReturnTypeWillChange]
10791080
public function count()
10801081
{
10811082
return \count($this->nodes);
@@ -1084,6 +1085,7 @@ public function count()
10841085
/**
10851086
* @return \ArrayIterator|\DOMNode[]
10861087
*/
1088+
#[\ReturnTypeWillChange]
10871089
public function getIterator()
10881090
{
10891091
return new \ArrayIterator($this->nodes);

Form.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public function all()
304304
*
305305
* @return bool true if the field exists, false otherwise
306306
*/
307+
#[\ReturnTypeWillChange]
307308
public function offsetExists(mixed $name)
308309
{
309310
return $this->has($name);
@@ -318,6 +319,7 @@ public function offsetExists(mixed $name)
318319
*
319320
* @throws \InvalidArgumentException if the field does not exist
320321
*/
322+
#[\ReturnTypeWillChange]
321323
public function offsetGet(mixed $name)
322324
{
323325
return $this->fields->get($name);
@@ -333,6 +335,7 @@ public function offsetGet(mixed $name)
333335
*
334336
* @throws \InvalidArgumentException if the field does not exist
335337
*/
338+
#[\ReturnTypeWillChange]
336339
public function offsetSet(mixed $name, mixed $value)
337340
{
338341
$this->fields->set($name, $value);
@@ -345,6 +348,7 @@ public function offsetSet(mixed $name, mixed $value)
345348
*
346349
* @return void
347350
*/
351+
#[\ReturnTypeWillChange]
348352
public function offsetUnset(mixed $name)
349353
{
350354
$this->fields->remove($name);

0 commit comments

Comments
 (0)