File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -827,6 +827,10 @@ public function resultWithEmptyIterator(): array
827
827
828
828
return [
829
829
[$ entity , new class () implements \Iterator {
830
+ /**
831
+ * @return mixed
832
+ */
833
+ #[\ReturnTypeWillChange]
830
834
public function current ()
831
835
{
832
836
return null ;
@@ -837,19 +841,28 @@ public function valid(): bool
837
841
return false ;
838
842
}
839
843
840
- public function next ()
844
+ public function next (): void
841
845
{
842
846
}
843
847
848
+ /**
849
+ * @return mixed
850
+ */
851
+ #[\ReturnTypeWillChange]
844
852
public function key ()
845
853
{
854
+ return false ;
846
855
}
847
856
848
- public function rewind ()
857
+ public function rewind (): void
849
858
{
850
859
}
851
860
}],
852
861
[$ entity , new class () implements \Iterator {
862
+ /**
863
+ * @return mixed
864
+ */
865
+ #[\ReturnTypeWillChange]
853
866
public function current ()
854
867
{
855
868
return false ;
@@ -860,15 +873,20 @@ public function valid(): bool
860
873
return false ;
861
874
}
862
875
863
- public function next ()
876
+ public function next (): void
864
877
{
865
878
}
866
879
880
+ /**
881
+ * @return mixed
882
+ */
883
+ #[\ReturnTypeWillChange]
867
884
public function key ()
868
885
{
886
+ return false ;
869
887
}
870
888
871
- public function rewind ()
889
+ public function rewind (): void
872
890
{
873
891
}
874
892
}],
You can’t perform that action at this time.
0 commit comments