[PoC] Value formatters #1109
Annotations
20 errors
PHPStan:
src/Formatter/BoolFormatter.php#L27
Method Sonata\Exporter\Formatter\BoolFormatter::format() has parameter $data with no value type specified in iterable type array.
|
PHPStan:
src/Formatter/BoolFormatter.php#L27
Method Sonata\Exporter\Formatter\BoolFormatter::format() return type has no value type specified in iterable type array.
|
PHPStan:
src/Formatter/DateIntervalFormatter.php#L29
Method Sonata\Exporter\Formatter\DateIntervalFormatter::format() has parameter $data with no value type specified in iterable type array.
|
PHPStan:
src/Formatter/DateIntervalFormatter.php#L29
Method Sonata\Exporter\Formatter\DateIntervalFormatter::format() return type has no value type specified in iterable type array.
|
PHPStan:
src/Formatter/DateTimeFormatter.php#L23
Method Sonata\Exporter\Formatter\DateTimeFormatter::format() has parameter $data with no value type specified in iterable type array.
|
PHPStan:
src/Formatter/DateTimeFormatter.php#L23
Method Sonata\Exporter\Formatter\DateTimeFormatter::format() return type has no value type specified in iterable type array.
|
PHPStan:
src/Formatter/EnumFormatter.php#L23
Method Sonata\Exporter\Formatter\EnumFormatter::format() has parameter $data with no value type specified in iterable type array.
|
PHPStan:
src/Formatter/EnumFormatter.php#L23
Method Sonata\Exporter\Formatter\EnumFormatter::format() return type has no value type specified in iterable type array.
|
PHPStan:
src/Formatter/FormatterInterface.php#L18
Method Sonata\Exporter\Formatter\FormatterInterface::format() has parameter $data with no value type specified in iterable type array.
|
PHPStan:
src/Formatter/FormatterInterface.php#L18
Method Sonata\Exporter\Formatter\FormatterInterface::format() return type has no value type specified in iterable type array.
|
InvalidArgument:
src/Formatter/IterableFormatter.php#L35
src/Formatter/IterableFormatter.php:35:86: InvalidArgument: Argument 2 of array_map expects array<array-key, mixed>, but iterable<mixed, mixed> provided (see https://psalm.dev/004)
|
InvalidArrayAccess:
src/Formatter/IterableFormatter.php#L35
src/Formatter/IterableFormatter.php:35:86: InvalidArrayAccess: Cannot access array value on non-array variable $value of type iterable<mixed, mixed> (see https://psalm.dev/005)
|
TooManyArguments:
src/Writer/CsvWriter.php#L131
src/Writer/CsvWriter.php:131:33: TooManyArguments: Too many arguments for method Sonata\Exporter\Formatter\FormatterInterface::format - saw 2 (see https://psalm.dev/026)
|
UnimplementedInterfaceMethod:
src/Writer/FormattedBoolWriter.php#L21
src/Writer/FormattedBoolWriter.php:21:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\FormattedBoolWriter (see https://psalm.dev/044)
|
UnimplementedInterfaceMethod:
src/Writer/GsaFeedWriter.php#L21
src/Writer/GsaFeedWriter.php:21:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\GsaFeedWriter (see https://psalm.dev/044)
|
UnimplementedInterfaceMethod:
src/Writer/InMemoryWriter.php#L16
src/Writer/InMemoryWriter.php:16:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\InMemoryWriter (see https://psalm.dev/044)
|
UnimplementedInterfaceMethod:
src/Writer/SitemapWriter.php#L19
src/Writer/SitemapWriter.php:19:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\SitemapWriter (see https://psalm.dev/044)
|
UnimplementedInterfaceMethod:
src/Writer/XlsxWriter.php#L28
src/Writer/XlsxWriter.php:28:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\XlsxWriter (see https://psalm.dev/044)
|
UnimplementedInterfaceMethod:
src/Writer/XmlExcelWriter.php#L21
src/Writer/XmlExcelWriter.php:21:13: UnimplementedInterfaceMethod: Method addformatter is not defined on class Sonata\Exporter\Writer\XmlExcelWriter (see https://psalm.dev/044)
|
InvalidReturnStatement:
tests/Source/AbstractPropertySourceIteratorTest.php#L38
tests/Source/AbstractPropertySourceIteratorTest.php:38:24: InvalidReturnStatement: The inferred type 'null|object|scalar' does not match the declared return type 'null|scalar' for _home_runner_work_exporter_exporter_tests_Source_AbstractPropertySourceIteratorTest_php_29_859::getValue (see https://psalm.dev/128)
|