Skip to content

PHPLIB-476: Consider transaction readPreference in select_server #931

PHPLIB-476: Consider transaction readPreference in select_server

PHPLIB-476: Consider transaction readPreference in select_server #931

Triggered via pull request September 26, 2023 19:03
Status Failure
Total duration 1m 49s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
InvalidNullableReturnType: src/functions.php#L577
src/functions.php:577:59: InvalidNullableReturnType: The declared return type 'MongoDB\Driver\Server' for MongoDB\select_server is not nullable, but 'MongoDB\Driver\Server|null' contains null (see https://psalm.dev/144)
NullableReturnStatement: src/functions.php#L583
src/functions.php:583:16: NullableReturnStatement: The declared return type 'MongoDB\Driver\Server' for MongoDB\select_server is not nullable, but the function returns 'MongoDB\Driver\Server|null' (see https://psalm.dev/139)
Psalm
Process completed with exit code 2.