,ignored_issues?:list,php_version?:string}> */ public function providerValidCodeParse(): iterable { yield 'RecursiveArrayIterator::CHILD_ARRAYS_ONLY (#6464)' => [ 'code' => ' [ 'code' => ' [], 'ignored_issues' => [], 'php_version' => '8.0', ]; yield 'Iterating over \DatePeriod (#5954) PHP7 Traversable' => [ 'code' => 'format("Y-m-d"); }', 'assertions' => [ '$period' => 'DatePeriod', '$dt' => 'DateTimeInterface|null' ], 'error_levels' => [], 'php_version' => '7.3', ]; yield 'Iterating over \DatePeriod (#5954) PHP8 IteratorAggregate' => [ 'code' => 'format("Y-m-d"); }', 'assertions' => [ '$period' => 'DatePeriod', '$dt' => 'DateTimeImmutable|null' ], 'error_levels' => [], 'php_version' => '8.0', ]; yield 'Iterating over \DatePeriod (#5954), ISO string' => [ 'code' => 'format("Y-m-d"); }', 'assertions' => [ '$period' => 'DatePeriod', '$dt' => 'DateTime|null' ], 'error_levels' => [], 'php_version' => '8.0', ]; yield 'DatePeriod implements only Traversable on PHP 7' => [ 'code' => ' [], 'error_levels' => [], 'php_version' => '7.3', ]; yield 'DatePeriod implements IteratorAggregate on PHP 8' => [ 'code' => ' [], 'error_levels' => ['RedundantCondition'], 'php_version' => '8.0', ]; } }