feat: VOL-4754 increase static analysis levels #124
Annotations
10 errors and 1 warning
Execute Psalm:
src/Filter/Postcode.php#L26
src/Filter/Postcode.php:26:28: MoreSpecificImplementedParamType: Argument 1 of Dvsa\Olcs\Transfer\Filter\Postcode::filter has the more specific type 'string', expecting 'mixed' as defined by Laminas\Filter\FilterInterface::filter (see https://psalm.dev/140)
|
Execute Psalm:
src/Filter/Vrm.php#L43
src/Filter/Vrm.php:43:28: ParamNameMismatch: Argument 1 of Dvsa\Olcs\Transfer\Filter\Vrm::filter has wrong name $input, expecting $value as defined by Laminas\Filter\FilterInterface::filter (see https://psalm.dev/230)
|
Execute Psalm:
src/Filter/Vrm.php#L43
src/Filter/Vrm.php:43:28: MoreSpecificImplementedParamType: Argument 1 of Dvsa\Olcs\Transfer\Filter\Vrm::filter has the more specific type 'string', expecting 'mixed' as defined by Laminas\Filter\FilterInterface::filter (see https://psalm.dev/140)
|
Execute Psalm:
src/Service/CacheEncryption.php#L325
src/Service/CacheEncryption.php:325:16: InvalidReturnType: The declared return type 'null|string' for Dvsa\Olcs\Transfer\Service\CacheEncryption::decrypt is incorrect, got 'bool|null|string' (see https://psalm.dev/011)
|
Execute Psalm:
src/Service/CacheEncryption.php#L334
src/Service/CacheEncryption.php:334:16: InvalidReturnStatement: The inferred type 'bool|string' does not match the declared return type 'null|string' for Dvsa\Olcs\Transfer\Service\CacheEncryption::decrypt (see https://psalm.dev/128)
|
Execute Psalm:
src/Util/ArrayInput.php#L90
src/Util/ArrayInput.php:90:16: LessSpecificImplementedReturnType: The inherited return type 'array<array-key, string>' for Laminas\InputFilter\InputInterface::getMessages is more specific than the implemented return type for Dvsa\Olcs\Transfer\Util\ArrayInput::getmessages 'array<array-key, mixed>' (see https://psalm.dev/166)
|
Execute Psalm:
src/Util/ArrayInput.php#L90
src/Util/ArrayInput.php:90:16: LessSpecificImplementedReturnType: The inherited return type 'array<array-key, string>' for Laminas\InputFilter\Input::getMessages is more specific than the implemented return type for Dvsa\Olcs\Transfer\Util\ArrayInput::getmessages 'array<array-key, mixed>' (see https://psalm.dev/166)
|
Execute Psalm:
src/Util/StructuredInput.php#L135
src/Util/StructuredInput.php:135:37: MoreSpecificImplementedParamType: Argument 1 of Dvsa\Olcs\Transfer\Util\StructuredInput::setErrorMessage has the more specific type 'string', expecting 'null|string' as defined by Laminas\InputFilter\InputInterface::setErrorMessage (see https://psalm.dev/140)
|
Execute Psalm:
src/Util/StructuredInput.php#L242
src/Util/StructuredInput.php:242:16: InvalidNullableReturnType: The declared return type 'string' for Dvsa\Olcs\Transfer\Util\StructuredInput::getErrorMessage is not nullable, but 'null|string' contains null (see https://psalm.dev/144)
|
Execute Psalm:
src/Util/StructuredInput.php#L246
src/Util/StructuredInput.php:246:16: NullableReturnStatement: The declared return type 'string' for Dvsa\Olcs\Transfer\Util\StructuredInput::getErrorMessage is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading