Skip to content

Refactor Rename

Refactor Rename #841

Triggered via pull request January 21, 2025 09:43
Status Failure
Total duration 1m 0s
Artifacts

continuous-integration.yml

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

Annotations

10 errors and 13 warnings
MixedArgumentTypeCoercion: test/File/RenameTest.php#L142
test/File/RenameTest.php:142:34: MixedArgumentTypeCoercion: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}, but parent type array<array-key, mixed>|string provided (see https://psalm.dev/194)
PossiblyInvalidCast: test/File/RenameTest.php#L146
test/File/RenameTest.php:146:36: PossiblyInvalidCast: array<array-key, mixed> cannot be cast to string (see https://psalm.dev/190)
PossiblyInvalidArgument: test/File/RenameTest.php#L146
test/File/RenameTest.php:146:36: PossiblyInvalidArgument: Argument 1 of LaminasTest\Filter\File\RenameTest::assertFileExists expects string, but possibly different type array<array-key, mixed>|string provided (see https://psalm.dev/092)
PossiblyInvalidCast: test/File/RenameTest.php#L148
test/File/RenameTest.php:148:29: PossiblyInvalidCast: array<array-key, mixed> cannot be cast to string (see https://psalm.dev/190)
PossiblyInvalidArgument: test/File/RenameTest.php#L148
test/File/RenameTest.php:148:29: PossiblyInvalidArgument: Argument 1 of file_exists expects string, but possibly different type array<array-key, mixed>|string provided (see https://psalm.dev/092)
PossiblyInvalidCast: test/File/RenameTest.php#L149
test/File/RenameTest.php:149:24: PossiblyInvalidCast: array<array-key, mixed> cannot be cast to string (see https://psalm.dev/190)
PossiblyInvalidArgument: test/File/RenameTest.php#L149
test/File/RenameTest.php:149:24: PossiblyInvalidArgument: Argument 1 of unlink expects string, but possibly different type array<array-key, mixed>|string provided (see https://psalm.dev/092)
UnusedVariable: test/File/RenameTest.php#L157
test/File/RenameTest.php:157:9: UnusedVariable: $newFileName is never referenced or the value is not used (see https://psalm.dev/077)
UnusedVariable: test/File/RenameTest.php#L158
test/File/RenameTest.php:158:9: UnusedVariable: $newDirectory is never referenced or the value is not used (see https://psalm.dev/077)
MixedArgumentTypeCoercion: test/File/RenameTest.php#L179
test/File/RenameTest.php:179:34: MixedArgumentTypeCoercion: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{match?: non-empty-string, overwrite?: bool, randomize?: bool, rename_to?: string, target_directory?: non-empty-string}, but parent type array<array-key, mixed>|string provided (see https://psalm.dev/194)
ci / Generate job matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636