Skip to content

PHPLIB-1568 Add GridFS\Bucket::deleteByName(filename) and renameByName(filename, newFilename) #2030

PHPLIB-1568 Add GridFS\Bucket::deleteByName(filename) and renameByName(filename, newFilename)

PHPLIB-1568 Add GridFS\Bucket::deleteByName(filename) and renameByName(filename, newFilename) #2030

Triggered via pull request October 30, 2024 12:48
Status Failure
Total duration 41s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
NullableReturnStatement: src/GridFS/CollectionWrapper.php#L94
src/GridFS/CollectionWrapper.php:94:16: NullableReturnStatement: The declared return type 'int' for MongoDB\GridFS\CollectionWrapper::deleteFileAndChunksByFilename is not nullable, but the function returns 'int|null' (see https://psalm.dev/139)
InvalidNullableReturnType: src/GridFS/CollectionWrapper.php#L266
src/GridFS/CollectionWrapper.php:266:87: InvalidNullableReturnType: The declared return type 'int' for MongoDB\GridFS\CollectionWrapper::updateFilenameForFilename is not nullable, but 'int|null' contains null (see https://psalm.dev/144)
Psalm
Process completed with exit code 2.