Skip to content

PHPLIB-1378 Replace example printfs with a callable #2585

PHPLIB-1378 Replace example printfs with a callable

PHPLIB-1378 Replace example printfs with a callable #2585

Triggered via pull request June 4, 2025 13:55
Status Failure
Total duration 2m 7s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
MissingClosureParamType: examples/command_logger.php#L51
examples/command_logger.php:51:27: MissingClosureParamType: Parameter $event has no provided type (see https://psalm.dev/153)
MissingClosureParamType: examples/sdam_logger.php#L90
examples/sdam_logger.php:90:27: MissingClosureParamType: Parameter $event has no provided type (see https://psalm.dev/153)
ImplicitToStringCast: examples/sdam_logger.php#L109
examples/sdam_logger.php:109:17: ImplicitToStringCast: Argument 4 of printf expects float|int|string, but MongoDB\BSON\ObjectId provided with a __toString method (see https://psalm.dev/060)
ImplicitToStringCast: examples/sdam_logger.php#L146
examples/sdam_logger.php:146:17: ImplicitToStringCast: Argument 4 of printf expects float|int|string, but MongoDB\BSON\ObjectId provided with a __toString method (see https://psalm.dev/060)
ImplicitToStringCast: examples/sdam_logger.php#L161
examples/sdam_logger.php:161:56: ImplicitToStringCast: Argument 2 of printf expects float|int|string, but MongoDB\BSON\ObjectId provided with a __toString method (see https://psalm.dev/060)
Psalm
Process completed with exit code 2.