Transformer use Symfony Serializer #2092
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
MoreSpecificReturnType:
src/Entity/Transformer.php#L312
src/Entity/Transformer.php:312:24: 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\Entity\Transformer::createBlock 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: null|string, enabled: bool, id: int|null|string, name: null|string, position: int|null, settings: array<string, mixed>, type: null|string, updated_at: null|string}' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
src/Entity/Transformer.php#L325
src/Entity/Transformer.php:325: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: null|string, enabled: bool, id: int|null|string, name: null|string, position: int|null, settings: array<string, mixed>, type: null|string, updated_at: null|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\Entity\Transformer::createBlock (see https://psalm.dev/129)
|
ArgumentTypeCoercion:
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)
|
MoreSpecificReturnType:
tests/Entity/TransformerTest.php#L187
tests/Entity/TransformerTest.php:187: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)
|
MoreSpecificReturnType:
tests/Entity/TransformerTest.php#L289
tests/Entity/TransformerTest.php:289:24: 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\Entity\TransformerTest::getTestContent is more specific than the inferred return type 'array{blocks: list{array{blocks: list{array{blocks: array<never, never>, created_at: string, enabled: false, id: 'block234', name: 'block2', position: 0, settings: array<never, never>, type: 'type', updated_at: string}}, created_at: string, enabled: false, id: 'block123', name: 'block1', position: 0, settings: array<never, never>, type: 'type', updated_at: string}}, created_at: string, id: 'page_child', name: 'Page Child', parent_id: 'page_parent', request_method: 'GET|POST|HEAD|DELETE|PUT', title: 'Page Child Title', updated_at: string}' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
tests/Entity/TransformerTest.php#L295
tests/Entity/TransformerTest.php:295:16: LessSpecificReturnStatement: The type 'array{blocks: list{array{blocks: list{array{blocks: array<never, never>, created_at: string, enabled: false, id: 'block234', name: 'block2', position: 0, settings: array<never, never>, type: 'type', updated_at: string}}, created_at: string, enabled: false, id: 'block123', name: 'block1', position: 0, settings: array<never, never>, type: 'type', updated_at: string}}, created_at: string, id: 'page_child', name: 'Page Child', parent_id: 'page_parent', request_method: 'GET|POST|HEAD|DELETE|PUT', 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\Entity\TransformerTest::getTestContent (see https://psalm.dev/129)
|
MoreSpecificReturnType:
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)
|
LessSpecificReturnStatement:
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)
|
MoreSpecificReturnType:
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)
|
LessSpecificReturnStatement:
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)
|