Skip to content

feat(core) : phpstan check and optimization #97

feat(core) : phpstan check and optimization

feat(core) : phpstan check and optimization #97

Triggered via push October 3, 2024 10:20
Status Failure
Total duration 47s
Artifacts

php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
UnusedVariable: SplBackedEnumTrait.php#L66
SplBackedEnumTrait.php:66:17: UnusedVariable: $result is never referenced or the value is not used (see https://psalm.dev/077)
UnusedParam: SplEnumAccessorsTrait.php#L62
SplEnumAccessorsTrait.php:62:47: UnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/135)
UnsupportedPropertyReferenceUsage: SplEnumBackedTrait.php#L57
SplEnumBackedTrait.php:57:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnnecessaryVarAnnotation: SplEnumBackedTrait.php#L72
SplEnumBackedTrait.php:72:18: UnnecessaryVarAnnotation: The @var Ducks\Component\SplTypes\SplBool annotation for $object is unnecessary (see https://psalm.dev/212)
InvalidReturnType: SplEnumBackedTrait.php#L82
SplEnumBackedTrait.php:82:16: InvalidReturnType: The declared return type 'array<string, string>' for Ducks\Component\SplTypes\SplEnumBackedTrait::__debugInfo is incorrect, got 'array{name: string, value: bool}' (see https://psalm.dev/011)
UndefinedDocblockClass: SplTypeTrait.php#L102
SplTypeTrait.php:102:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named Ducks\Component\SplTypes\T does not exist (see https://psalm.dev/200)
build
Process completed with exit code 2.
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/