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 @@ -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 }],
You can’t perform that action at this time.
0 commit comments