Skip to content

PHPLIB-1612 Upgrade Psalm v6 #2220

PHPLIB-1612 Upgrade Psalm v6

PHPLIB-1612 Upgrade Psalm v6 #2220

Triggered via pull request January 27, 2025 09:53
Status Failure
Total duration 41s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PossiblyFalseArgument: examples/gridfs_stream.php#L44
examples/gridfs_stream.php:44:21: PossiblyFalseArgument: Argument 1 of strlen cannot be false, possibly string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L31
examples/gridfs_upload.php:31:8: PossiblyFalseArgument: Argument 1 of fwrite cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L32
examples/gridfs_upload.php:32:8: PossiblyFalseArgument: Argument 1 of rewind cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L35
examples/gridfs_upload.php:35:46: PossiblyFalseArgument: Argument 2 of MongoDB\GridFS\Bucket::uploadFromStream cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L38
examples/gridfs_upload.php:38:8: PossiblyFalseArgument: Argument 1 of fclose cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L42
examples/gridfs_upload.php:42:46: PossiblyFalseArgument: Argument 2 of MongoDB\GridFS\Bucket::downloadToStreamByName cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L43
examples/gridfs_upload.php:43:8: PossiblyFalseArgument: Argument 1 of rewind cannot be false, possibly resource value expected (see https://psalm.dev/104)
PossiblyFalseArgument: examples/gridfs_upload.php#L44
examples/gridfs_upload.php:44:45: PossiblyFalseArgument: Argument 1 of stream_get_contents cannot be false, possibly resource value expected (see https://psalm.dev/104)
InvalidFalsableReturnType: src/Collection.php#L338
src/Collection.php:338:16: InvalidFalsableReturnType: The declared return type 'string' for MongoDB\Collection::createIndex does not allow false, but 'false|string' contains false (see https://psalm.dev/143)
FalsableReturnStatement: src/Collection.php#L349
src/Collection.php:349:16: FalsableReturnStatement: The declared return type 'string' for MongoDB\Collection::createIndex does not allow false, but the function returns 'false|string' (see https://psalm.dev/137)