Skip to content

Commit 431429a

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Fix return types for PHP 8.1
2 parents 0b12f9a + d44e0b7 commit 431429a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ public function resultWithEmptyIterator(): array
865865

866866
return [
867867
[$entity, new class() implements \Iterator {
868+
/**
869+
* @return mixed
870+
*/
871+
#[\ReturnTypeWillChange]
868872
public function current()
869873
{
870874
return null;
@@ -875,19 +879,28 @@ public function valid(): bool
875879
return false;
876880
}
877881

878-
public function next()
882+
public function next(): void
879883
{
880884
}
881885

886+
/**
887+
* @return mixed
888+
*/
889+
#[\ReturnTypeWillChange]
882890
public function key()
883891
{
892+
return false;
884893
}
885894

886-
public function rewind()
895+
public function rewind(): void
887896
{
888897
}
889898
}],
890899
[$entity, new class() implements \Iterator {
900+
/**
901+
* @return mixed
902+
*/
903+
#[\ReturnTypeWillChange]
891904
public function current()
892905
{
893906
return false;
@@ -898,15 +911,20 @@ public function valid(): bool
898911
return false;
899912
}
900913

901-
public function next()
914+
public function next(): void
902915
{
903916
}
904917

918+
/**
919+
* @return mixed
920+
*/
921+
#[\ReturnTypeWillChange]
905922
public function key()
906923
{
924+
return false;
907925
}
908926

909-
public function rewind()
927+
public function rewind(): void
910928
{
911929
}
912930
}],

0 commit comments

Comments
 (0)