Skip to content

Static analysis

Static analysis #133

Manually triggered March 29, 2024 11:16
Status Failure
Total duration 24s
Artifacts

static-analysis.yml

on: workflow_dispatch
static analysis
15s
static analysis
Fit to window
Zoom out
Zoom in

Annotations

5 errors
InvalidReturnStatement: ../../src/SensitiveSerializer/Serializer/ValueSerializer/JsonValueSerializer.php#L27
../../src/SensitiveSerializer/Serializer/ValueSerializer/JsonValueSerializer.php:27:20: InvalidReturnStatement: The inferred type 'null|scalar' does not match the declared return type 'null|phpDocumentor\Reflection\Types\Scalar' for Matiux\Broadway\SensitiveSerializer\Serializer\ValueSerializer\JsonValueSerializer::doDeserialize (see https://psalm.dev/128)
InvalidArgument: ../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php#L27
../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php:27:35: InvalidArgument: Argument 1 of Matiux\Broadway\SensitiveSerializer\Serializer\ValueSerializer\ValueSerializer::doSerialize expects null|phpDocumentor\Reflection\Types\Scalar, but null|scalar provided (see https://psalm.dev/004)
ImplicitToStringCast: ../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php#L60
../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php:60:16: ImplicitToStringCast: The declared return type for Matiux\Broadway\SensitiveSerializer\Serializer\ValueSerializer\ValueSerializer::deserialize expects 'list<null|scalar>|null|scalar', 'list<null|scalar>|null|phpDocumentor\Reflection\Types\Scalar' provided with a __toString method (see https://psalm.dev/060)
ImplicitToStringCast: ../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php#L76
../../src/SensitiveSerializer/Serializer/ValueSerializer/ValueSerializer.php:76:16: ImplicitToStringCast: The declared return type for Matiux\Broadway\SensitiveSerializer\Serializer\ValueSerializer\ValueSerializer::deserializeArray expects 'list<null|scalar>', 'list<null|phpDocumentor\Reflection\Types\Scalar>' provided with a __toString method (see https://psalm.dev/060)
static analysis
Process completed with exit code 2.