Transformer use Symfony Serializer #2093
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
PHPStan:
src/Entity/Transformer.php#L325
PHPDoc tag @var with type int|numeric-string|null is not subtype of type numeric-string|null.
|
PHPStan:
src/Entity/Transformer.php#L329
PHPDoc tag @var with type int|numeric-string|null is not subtype of type numeric-string|null.
|
PHPStan:
tests/Entity/TransformerTest.php#L184
Variable $dateTimeString in PHPDoc tag @var does not match assigned variable $datetimeString.
|
PHPStan:
tests/Entity/TransformerTest.php#L287
Variable $dateTimeString in PHPDoc tag @var does not match assigned variable $datetimeString.
|
PHPStan
Process completed with exit code 1.
|
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#L175
tests/Entity/TransformerTest.php:175: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#L280
tests/Entity/TransformerTest.php:280: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#L289
tests/Entity/TransformerTest.php:289: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)
|
Psalm
Process completed with exit code 2.
|