Sync with 1.x branch #4548
static.yml
on: pull_request
Matrix: psalm / psalm
Matrix: psalm80 / psalm
Annotations
34 errors
psalm80 / PHP 8.0-ubuntu-latest
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires php ^8.1 but your php version (8.0.30) does not satisfy that requirement.
Problem 2
- roave/infection-static-analysis-plugin 1.25.0 requires vimeo/psalm ^4.29.0 -> found vimeo/psalm[4.29.0, 4.30.0] but it conflicts with your root composer.json require (^5.22).
- roave/infection-static-analysis-plugin[1.26.0, ..., 1.32.0] require php ~8.1.0 || ~8.2.0 -> your php version (8.0.30) does not satisfy that requirement.
- roave/infection-static-analysis-plugin[1.33.0, ..., 1.35.0] require php ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.0.30) does not satisfy that requirement.
- Root composer.json requires roave/infection-static-analysis-plugin ^1.25 -> satisfiable by roave/infection-static-analysis-plugin[1.25.0, ..., 1.35.0].
|
psalm80 / PHP 8.0-ubuntu-latest
Process completed with exit code 2.
|
UndefinedClass:
src/Rule/AnyRule.php#L47
src/Rule/AnyRule.php:47:5: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/AnyRuleHandler.php#L18
src/Rule/AnyRuleHandler.php:18:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\AnyRuleHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/AnyRuleHandler.php#L20
src/Rule/AnyRuleHandler.php:20:31: MissingDependency: Yiisoft\Validator\Rule\AnyRule depends on class or interface yiisoft\validator\rulewithoptionsinterface that does not exist (see https://psalm.dev/157)
|
MissingParamType:
src/Rule/LengthHandler.php#L25
src/Rule/LengthHandler.php:25:30: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
MissingParamType:
src/Rule/StringValueHandler.php#L22
src/Rule/StringValueHandler.php:22:30: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
UndefinedClass:
src/Rule/Type/BooleanType.php#L29
src/Rule/Type/BooleanType.php:29:36: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/Type/BooleanTypeHandler.php#L20
src/Rule/Type/BooleanTypeHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\Type\BooleanTypeHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/Type/BooleanTypeHandler.php#L22
src/Rule/Type/BooleanTypeHandler.php:22:31: MissingDependency: Yiisoft\Validator\Rule\Type\BooleanType depends on class or interface yiisoft\validator\rulewithoptionsinterface that does not exist (see https://psalm.dev/157)
|
UndefinedClass:
src/Rule/Type/FloatType.php#L28
src/Rule/Type/FloatType.php:28:34: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/Type/FloatTypeHandler.php#L20
src/Rule/Type/FloatTypeHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\Type\FloatTypeHandler::validate (see https://psalm.dev/047)
|
psalm / PHP 8.3-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
|
MissingClassConstType:
src/Error.php#L18
src/Error.php:18:18: MissingClassConstType: Class constant "Yiisoft\Validator\Error::MESSAGE_NONE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Error.php#L19
src/Error.php:19:18: MissingClassConstType: Class constant "Yiisoft\Validator\Error::MESSAGE_FORMAT" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Error.php#L20
src/Error.php:20:18: MissingClassConstType: Class constant "Yiisoft\Validator\Error::MESSAGE_TRANSLATE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractCompare.php#L50
src/Rule/AbstractCompare.php:50:21: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractCompare::DEFAULT_INCORRECT_INPUT_MESSAGE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractCompare.php#L55
src/Rule/AbstractCompare.php:55:21: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractCompare::DEFAULT_INCORRECT_DATA_SET_TYPE_MESSAGE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractCompare.php#L63
src/Rule/AbstractCompare.php:63:19: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractCompare::VALID_TYPES" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractCompare.php#L67
src/Rule/AbstractCompare.php:67:19: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractCompare::VALID_OPERATORS_MAP" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractNumber.php#L42
src/Rule/AbstractNumber.php:42:21: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractNumber::DEFAULT_INCORRECT_INPUT_MESSAGE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractNumber.php#L46
src/Rule/AbstractNumber.php:46:21: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractNumber::DEFAULT_LESS_THAN_MIN_MESSAGE" should have a declared type. (see https://psalm.dev/359)
|
MissingClassConstType:
src/Rule/AbstractNumber.php#L50
src/Rule/AbstractNumber.php:50:21: MissingClassConstType: Class constant "Yiisoft\Validator\Rule\AbstractNumber::DEFAULT_GREATER_THAN_MAX_MESSAGE" should have a declared type. (see https://psalm.dev/359)
|
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
|
UndefinedClass:
src/Rule/AnyRule.php#L47
src/Rule/AnyRule.php:47:5: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/AnyRuleHandler.php#L18
src/Rule/AnyRuleHandler.php:18:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\AnyRuleHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/AnyRuleHandler.php#L20
src/Rule/AnyRuleHandler.php:20:31: MissingDependency: Yiisoft\Validator\Rule\AnyRule depends on class or interface yiisoft\validator\rulewithoptionsinterface that does not exist (see https://psalm.dev/157)
|
MissingParamType:
src/Rule/LengthHandler.php#L25
src/Rule/LengthHandler.php:25:30: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
MissingParamType:
src/Rule/StringValueHandler.php#L22
src/Rule/StringValueHandler.php:22:30: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
UndefinedClass:
src/Rule/Type/BooleanType.php#L29
src/Rule/Type/BooleanType.php:29:36: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/Type/BooleanTypeHandler.php#L20
src/Rule/Type/BooleanTypeHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\Type\BooleanTypeHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/Type/BooleanTypeHandler.php#L22
src/Rule/Type/BooleanTypeHandler.php:22:31: MissingDependency: Yiisoft\Validator\Rule\Type\BooleanType depends on class or interface yiisoft\validator\rulewithoptionsinterface that does not exist (see https://psalm.dev/157)
|
UndefinedClass:
src/Rule/Type/FloatType.php#L28
src/Rule/Type/FloatType.php:28:34: UndefinedClass: Class, interface or enum named Yiisoft\Validator\RuleWithOptionsInterface does not exist (see https://psalm.dev/019)
|
MixedInferredReturnType:
src/Rule/Type/FloatTypeHandler.php#L20
src/Rule/Type/FloatTypeHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\Type\FloatTypeHandler::validate (see https://psalm.dev/047)
|