Skip to content

Various udpates and more tests #462

Various udpates and more tests

Various udpates and more tests #462

Triggered via pull request October 20, 2024 18:31
Status Failure
Total duration 1m 17s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Psalm
Fit to window
Zoom out
Zoom in

Annotations

7 errors
InvalidReturnType: src/SonsOfPHP/Bard/Tests/Operation/Bard/AddPackageOperationTest.php#L56
src/SonsOfPHP/Bard/Tests/Operation/Bard/AddPackageOperationTest.php:56:48: InvalidReturnType: The declared return type 'true' for /home/runner/work/sonsofphp/sonsofphp/src/sonsofphp/bard/tests/operation/bard/addpackageoperationtest.php:56:1637:-:closure is incorrect, got 'bool' (see https://psalm.dev/011)
InvalidReturnStatement: src/SonsOfPHP/Bard/Tests/Operation/Bard/AddPackageOperationTest.php#L56
src/SonsOfPHP/Bard/Tests/Operation/Bard/AddPackageOperationTest.php:56:56: InvalidReturnStatement: The inferred type 'bool' does not match the declared return type 'true' for /home/runner/work/sonsofphp/sonsofphp/src/sonsofphp/bard/tests/operation/bard/addpackageoperationtest.php:56:1637:-:closure (see https://psalm.dev/128)
InvalidReturnType: src/SonsOfPHP/Bard/Tests/Operation/Bard/UpdateVersionOperationTest.php#L44
src/SonsOfPHP/Bard/Tests/Operation/Bard/UpdateVersionOperationTest.php:44:43: InvalidReturnType: The declared return type 'true' for /home/runner/work/sonsofphp/sonsofphp/src/sonsofphp/bard/tests/operation/bard/updateversionoperationtest.php:44:1377:-:closure is incorrect, got 'bool' (see https://psalm.dev/011)
InvalidReturnStatement: src/SonsOfPHP/Bard/Tests/Operation/Bard/UpdateVersionOperationTest.php#L44
src/SonsOfPHP/Bard/Tests/Operation/Bard/UpdateVersionOperationTest.php:44:51: InvalidReturnStatement: The inferred type 'bool' does not match the declared return type 'true' for /home/runner/work/sonsofphp/sonsofphp/src/sonsofphp/bard/tests/operation/bard/updateversionoperationtest.php:44:1377:-:closure (see https://psalm.dev/128)
InvalidArgument: src/SonsOfPHP/Bard/src/Operation/Composer/Root/UpdateReplaceSectionOperation.php#L24
src/SonsOfPHP/Bard/src/Operation/Composer/Root/UpdateReplaceSectionOperation.php:24:15: InvalidArgument: Argument 1 of ksort expects array<array-key, mixed>, but non-empty-array<array<array-key, mixed>|int|string, string> provided (see https://psalm.dev/004)
InvalidArgument: src/SonsOfPHP/Bard/src/Operation/Composer/Root/UpdateReplaceSectionOperation.php#L26
src/SonsOfPHP/Bard/src/Operation/Composer/Root/UpdateReplaceSectionOperation.php:26:61: InvalidArgument: Argument 2 of SonsOfPHP\Bard\JsonFile::setSection expects array<array-key, mixed>|int|null|string, but non-empty-array<array<array-key, mixed>|int|string, string> provided (see https://psalm.dev/004)
Psalm (8.2)
Process completed with exit code 2.