Skip to content

Allow dynamic properties from PHPDoc #48

Allow dynamic properties from PHPDoc

Allow dynamic properties from PHPDoc #48

Triggered via push May 4, 2023 12:20
Status Failure
Total duration 1m 7s
Artifacts

shepherd.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors
InvalidReturnType: tests/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzerTest.php#L14
tests/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzerTest.php:14:47: InvalidReturnType: The declared return type 'iterable<string, array{assertions?: array<string, string>, code: string, ignored_issues?: list<string>, php_version?: string}>' for Psalm\Tests\Internal\Analyzer\Statements\Expression\Fetch\AtomicPropertyFetchAnalyzerTest::providerValidCodeParse is incorrect, got 'array{'allowDynamicProperties for child': array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignored_issues: array<never, never>, php_version: '8.2'}, 'allowDynamicProperties for grandchild': array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignored_issues: array<never, never>, php_version: '8.2'}, allowDynamicProperties: array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignores_issues: array<never, never>, php_version: '8.2'}}' (see https://psalm.dev/011)
InvalidReturnStatement: tests/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzerTest.php#L16
tests/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzerTest.php:16:16: InvalidReturnStatement: The inferred type 'array{'allowDynamicProperties for child': array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignored_issues: array<never, never>, php_version: '8.2'}, 'allowDynamicProperties for grandchild': array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignored_issues: array<never, never>, php_version: '8.2'}, allowDynamicProperties: array{assertions: array<never, never>, code: '<?php\n /** @property-read string $foo */\n ...', ignores_issues: array<never, never>, php_version: '8.2'}}' does not match the declared return type 'iterable<string, array{assertions?: array<string, string>, code: string, ignored_issues?: list<string>, php_version?: string}>' for Psalm\Tests\Internal\Analyzer\Statements\Expression\Fetch\AtomicPropertyFetchAnalyzerTest::providerValidCodeParse (see https://psalm.dev/128)
build
Process completed with exit code 2.