Skip to content

Use getConstantStrings to get resolved arg string #140

Use getConstantStrings to get resolved arg string

Use getConstantStrings to get resolved arg string #140

Triggered via pull request October 15, 2023 06:09
Status Failure
Total duration 1m 12s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
8s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

8 errors
ci / QA Checks (phpstan [7.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...: src/Rules/PlaceholderCharactersRule.php#L99
Method Sfp\PHPStan\Psr\Log\Rules\PlaceholderCharactersRule::processNode() should return array<PHPStan\Rules\RuleError|string> but returns array<int<0, max>, PHPStan\Rules\RuleError|null>.
ci / QA Checks (phpstan [7.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-action@v1...: src/Rules/PlaceholderCorrespondToKeysRule.php#L114
PHPDoc tag @return with type array<int, PHPStan\Rules\RuleError> is incompatible with native type PHPStan\Rules\RuleError|null.
InvalidReturnType: src/Rules/PlaceholderCharactersRule.php#L38
src/Rules/PlaceholderCharactersRule.php:38:60: InvalidReturnType: The declared return type 'array<array-key, PHPStan\Rules\RuleError|string>' for Sfp\PHPStan\Psr\Log\Rules\PlaceholderCharactersRule::processNode is incorrect, got 'list<PHPStan\Rules\RuleError|null>' (see https://psalm.dev/011)
InvalidReturnStatement: src/Rules/PlaceholderCharactersRule.php#L99
src/Rules/PlaceholderCharactersRule.php:99:16: InvalidReturnStatement: The inferred type 'list<PHPStan\Rules\RuleError|null>' does not match the declared return type 'array<array-key, PHPStan\Rules\RuleError|string>' for Sfp\PHPStan\Psr\Log\Rules\PlaceholderCharactersRule::processNode (see https://psalm.dev/128)
InvalidReturnType: src/Rules/PlaceholderCorrespondToKeysRule.php#L35
src/Rules/PlaceholderCorrespondToKeysRule.php:35:60: InvalidReturnType: The declared return type 'array<array-key, PHPStan\Rules\RuleError|string>' for Sfp\PHPStan\Psr\Log\Rules\PlaceholderCorrespondToKeysRule::processNode is incorrect, got 'list<PHPStan\Rules\RuleError|non-empty-list<PHPStan\Rules\RuleError>>' (see https://psalm.dev/011)
InvalidReturnStatement: src/Rules/PlaceholderCorrespondToKeysRule.php#L105
src/Rules/PlaceholderCorrespondToKeysRule.php:105:16: InvalidReturnStatement: The inferred type 'list<PHPStan\Rules\RuleError|non-empty-list<PHPStan\Rules\RuleError>>' does not match the declared return type 'array<array-key, PHPStan\Rules\RuleError|string>' for Sfp\PHPStan\Psr\Log\Rules\PlaceholderCorrespondToKeysRule::processNode (see https://psalm.dev/128)
MismatchingDocblockReturnType: src/Rules/PlaceholderCorrespondToKeysRule.php#L112
src/Rules/PlaceholderCorrespondToKeysRule.php:112:24: MismatchingDocblockReturnType: Docblock has incorrect return type 'list<PHPStan\Rules\RuleError>', should be 'PHPStan\Rules\RuleError|null' (see https://psalm.dev/142)
MixedInferredReturnType: src/Rules/PlaceholderCorrespondToKeysRule.php#L112
src/Rules/PlaceholderCorrespondToKeysRule.php:112:24: MixedInferredReturnType: Could not verify return type 'list<PHPStan\Rules\RuleError>' for Sfp\PHPStan\Psr\Log\Rules\PlaceholderCorrespondToKeysRule::contextDoesNotHavePlaceholderKey (see https://psalm.dev/047)