Replace usages of AbstractFilter with the FilterInterface #797
Annotations
10 errors and 1 warning
Psalm [8.1, locked]:
src/Dir.php#L21
src/Dir.php:21:22: MixedInferredReturnType: Could not verify return type 'string' for Laminas\Filter\Dir::filter (see https://psalm.dev/047)
|
Psalm [8.1, locked]:
src/Dir.php#L26
src/Dir.php:26:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
Psalm [8.1, locked]:
src/File/RenameUpload.php#L113
src/File/RenameUpload.php:113:30: MixedArgumentTypeCoercion: Argument 1 of Laminas\Filter\File\RenameUpload::filter expects Psr\Http\Message\UploadedFileInterface|array<array-key, mixed>|string, but parent type T:fn-laminas\filter\filterinterface::__invoke as mixed provided (see https://psalm.dev/194)
|
Psalm [8.1, locked]:
src/HtmlEntities.php#L84
src/HtmlEntities.php:84:45: MixedInferredReturnType: Could not verify return type 'T|string' for Laminas\Filter\HtmlEntities::__invoke (see https://psalm.dev/047)
|
Psalm [8.1, locked]:
src/HtmlEntities.php#L86
src/HtmlEntities.php:86:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
Psalm [8.1, locked]:
src/Inflector.php#L48
src/Inflector.php:48:15: InvalidParamDefault: Default value type array<never, never> for argument 1 of method Laminas\Filter\Inflector::__construct does not match the given type array{pluginManager?: Laminas\Filter\FilterPluginManager, rules?: array<array-key, mixed>, target: string, targetReplacementIdentifier?: string, throwTargetExceptionsOn?: bool} (see https://psalm.dev/062)
|
Psalm [8.1, locked]:
src/Inflector.php#L53
src/Inflector.php:53:17: DocblockTypeContradiction: Docblock-defined type Laminas\Filter\FilterPluginManager for $options['pluginManager'] is never scalar (see https://psalm.dev/155)
|
Psalm [8.1, locked]:
src/Inflector.php#L53
src/Inflector.php:53:70: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
|
Psalm [8.1, locked]:
src/Inflector.php#L54
src/Inflector.php:54:45: UndefinedClass: Type never cannot be called as a class (see https://psalm.dev/019)
|
Psalm [8.1, locked]:
src/Inflector.php#L56
src/Inflector.php:56:36: InvalidPropertyAssignmentValue: $this->pluginManager with declared type 'Laminas\Filter\FilterPluginManager' cannot be assigned type 'object|string' (see https://psalm.dev/145)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading