Skip to content

PHPLIB-1378 Replace example printfs with a callable #2586

PHPLIB-1378 Replace example printfs with a callable

PHPLIB-1378 Replace example printfs with a callable #2586

Triggered via pull request June 4, 2025 14:57
Status Failure
Total duration 2m 21s
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#L88
examples/sdam_logger.php:88:27: MissingClosureParamType: Parameter $event has no provided type (see https://psalm.dev/153)
ImplicitToStringCast: examples/sdam_logger.php#L107
examples/sdam_logger.php:107: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#L144
examples/sdam_logger.php:144: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#L159
examples/sdam_logger.php:159: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.