Skip to content

Refactor Rename

Refactor Rename #862

Triggered via pull request February 24, 2025 10:38
Status Failure
Total duration 1m 4s
Artifacts

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
9s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

4 errors
PossiblyInvalidArgument: src/File/Rename.php#L53
src/File/Rename.php:53:72: PossiblyInvalidArgument: Argument 1 of Laminas\Filter\File\Rename::validateAndDefaultOptions expects array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}, but possibly different type array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}|bool|string provided (see https://psalm.dev/092)
InvalidArgument: src/File/Rename.php#L57
src/File/Rename.php:57:68: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::validateAndDefaultOptions expects array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}, but array{0?: array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}|mixed, match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string, ...<int<0, max>, array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}|mixed>} provided (see https://psalm.dev/004)
PossiblyFalseArgument: src/File/Rename.php#L116
src/File/Rename.php:116:17: PossiblyFalseArgument: Argument 3 of sprintf cannot be false, possibly float|int|object{__tostring()}|string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: test/File/RenameTest.php#L262
test/File/RenameTest.php:262:21: PossiblyFalseArgument: Argument 3 of sprintf cannot be false, possibly float|int|object{__tostring()}|string value expected (see https://psalm.dev/104)