Refactor Rename #829
Annotations
10 errors and 1 warning
Psalm [8.1, locked]:
src/File/Rename.php#L33
src/File/Rename.php:33:31: MissingTemplateParam: Laminas\Filter\File\Rename has missing template params when extending Laminas\Filter\FilterInterface, expecting 1 (see https://psalm.dev/182)
|
Psalm [8.1, locked]:
src/File/Rename.php#L56
src/File/Rename.php:56:24: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::addFile expects array{overwrite?: bool, randomize?: bool, source?: string, target: string}|string, but array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}} with additional array shape fields (file) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
src/File/Rename.php#L58
src/File/Rename.php:58:16: InvalidReturnStatement: No return values are expected for Laminas\Filter\File\Rename::__construct (see https://psalm.dev/128)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L217
test/File/RenameTest.php:217:34: MixedArgumentTypeCoercion: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but parent type array<array-key, mixed>|string provided (see https://psalm.dev/194)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L240
test/File/RenameTest.php:240:34: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{source: non-falsy-string, target: '/to-be-overwritten.xml'} with additional array shape fields (source, target) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L278
test/File/RenameTest.php:278:34: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{source: non-falsy-string, target: string} with additional array shape fields (source, target) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L304
test/File/RenameTest.php:304:34: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{source: non-falsy-string, target: non-falsy-string} with additional array shape fields (source, target) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L340
test/File/RenameTest.php:340:34: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{overwrite: true, source: non-falsy-string, target: non-falsy-string} with additional array shape fields (source, target, overwrite) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L368
test/File/RenameTest.php:368:34: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{randomize: true, source: non-falsy-string, target: non-falsy-string} with additional array shape fields (source, target, randomize) was provided (see https://psalm.dev/004)
|
Psalm [8.1, locked]:
test/File/RenameTest.php#L398
test/File/RenameTest.php:398:37: InvalidArgument: Argument 1 of Laminas\Filter\File\Rename::__construct expects array{file?: array{overwrite?: bool, randomize?: bool, source?: string, target: string}}, but array{randomize: true, source: non-falsy-string, target: non-falsy-string} with additional array shape fields (source, target, randomize) was provided (see https://psalm.dev/004)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading