Allow to extract values from enum types at AbstractPropertySourceIterator::getValue()
#1103
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
2 errors
InvalidReturnType:
tests/Source/AbstractPropertySourceIteratorTest.php#L46
tests/Source/AbstractPropertySourceIteratorTest.php:46:16: InvalidReturnType: The declared return type 'iterable<mixed, array{0: mixed, 1: mixed, 2?: string}>' for Sonata\Exporter\Tests\Source\AbstractPropertySourceIteratorTest::provideGetValueCases is incorrect, got 'Generator<int, list{0: '123'|123|ArrayIterator<int<0, 2>, 1|2|3>|DateInterval|DateTime|DateTimeImmutable|Generator<int<0, 2>, 1|2|3, mixed, void>|Sonata\Exporter\Tests\Source\Fixtures\ObjectWithToString|enum(Sonata\Exporter\Tests\Source\Fixtures\Element::Hydrogen)|enum(Sonata\Exporter\Tests\Source\Fixtures\Suit::Diamonds)|list{1, 2, 3}, 1: 123|string, 2?: 'Y-m-d H:i:s'|'r', 3?: false}, mixed, void>' (see https://psalm.dev/011)
|
Psalm
Process completed with exit code 2.
|