Transformer use Symfony Serializer #2091
Annotations
7 errors
src/Route/RoutePageGenerator.php#L81
src/Route/RoutePageGenerator.php:81:37: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
tests/Entity/TransformerTest.php#L223
tests/Entity/TransformerTest.php:223:24: MoreSpecificReturnType: The declared return type 'iterable<mixed, list{array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}}>' for Sonata\PageBundle\Tests\Entity\TransformerTest::blockProvider is more specific than the inferred return type 'Generator<int, list{array{blocks: list{0?: array{blocks: array<never, never>, created_at: int|null|string, enabled: '0'|true, id: 2|null, name?: 'block2', position: 1|null, settings: array<never, never>, type: 'type'|null, updated_at: int|null|string}}, created_at: int|null|string, enabled: '1'|bool, id: 'block123'|'random_string'|1|2|null, name?: 'block1', position: ''|'0'|0|null, settings: array<never, never>, type: 'type'|null, updated_at: int|null|string}}, mixed, void>' (see https://psalm.dev/070)
|
tests/Functional/Entity/FTransformerTest.php#L379
tests/Functional/Entity/FTransformerTest.php:379:16: MoreSpecificReturnType: The declared return type 'array{blocks: array<array-key, array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, id: int|null|string, javascript?: null|string, meta_description?: null|string, meta_keyword?: null|string, name?: null|string, parent_id?: int|null|string, raw_headers?: null|string, request_method?: null|string, slug?: null|string, stylesheet?: null|string, template_code?: null|string, title?: null|string, updated_at: int|null|numeric-string}' for Sonata\PageBundle\Tests\Functional\Entity\FTransformerTest::getTestContent is more specific than the inferred return type 'array{blocks: list{array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}}, created_at: string, id: 123, name: 'Page Child', parent_id: 789, request_method: 'GET|POST|HEAD|DELETE|PUT', template_code: 'template', title: 'Page Child Title', updated_at: string}' (see https://psalm.dev/070)
|
tests/Functional/Entity/FTransformerTest.php#L385
tests/Functional/Entity/FTransformerTest.php:385:16: LessSpecificReturnStatement: The type 'array{blocks: list{array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}}, created_at: string, id: 123, name: 'Page Child', parent_id: 789, request_method: 'GET|POST|HEAD|DELETE|PUT', template_code: 'template', title: 'Page Child Title', updated_at: string}' is more general than the declared return type 'array{blocks: array<array-key, array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, id: int|null|string, javascript?: null|string, meta_description?: null|string, meta_keyword?: null|string, name?: null|string, parent_id?: int|null|string, raw_headers?: null|string, request_method?: null|string, slug?: null|string, stylesheet?: null|string, template_code?: null|string, title?: null|string, updated_at: int|null|numeric-string}' for Sonata\PageBundle\Tests\Functional\Entity\FTransformerTest::getTestContent (see https://psalm.dev/129)
|
tests/Functional/Entity/FTransformerTest.php#L409
tests/Functional/Entity/FTransformerTest.php:409:16: MoreSpecificReturnType: The declared return type 'array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}' for Sonata\PageBundle\Tests\Functional\Entity\FTransformerTest::getTestBlockArray is more specific than the inferred return type 'array{blocks: list{array{blocks: array<never, never>, created_at: string, enabled: false, id: 234, name: 'block2', position: int|null|string, settings: array<string, mixed|null>, type: 'type', updated_at: string}}, created_at: string, enabled: false, id: 123, name: 'block1', position: int|null|string, settings: array<string, mixed|null>, type: 'type', updated_at: string}' (see https://psalm.dev/070)
|
tests/Functional/Entity/FTransformerTest.php#L415
tests/Functional/Entity/FTransformerTest.php:415:16: LessSpecificReturnStatement: The type 'array{blocks: list{array{blocks: array<never, never>, created_at: string, enabled: false, id: 234, name: 'block2', position: int|null|string, settings: array<string, mixed|null>, type: 'type', updated_at: string}}, created_at: string, enabled: false, id: 123, name: 'block1', position: int|null|string, settings: array<string, mixed|null>, type: 'type', updated_at: string}' is more general than the declared return type 'array{blocks: array<array-key, array{blocks: array<array-key, mixed>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}>, created_at: int|null|numeric-string, enabled: '0'|'1'|bool, id: int|null|string, name?: null|string, parent_id?: int|null|string, position: int|null|string, settings: array<string, mixed>, type: null|string, updated_at: int|null|numeric-string}' for Sonata\PageBundle\Tests\Functional\Entity\FTransformerTest::getTestBlockArray (see https://psalm.dev/129)
|
|
The logs for this run have expired and are no longer available.
Loading