Add enum support #4608
static.yml
on: pull_request
Matrix: psalm / psalm
Matrix: psalm80 / psalm
Annotations
33 errors
UndefinedClass:
src/Rule/In.php#L35
src/Rule/In.php:35:27: UndefinedClass: Class, interface or enum named Yiisoft\Validator\DumpedRuleInterface does not exist (see https://psalm.dev/019)
|
TypeDoesNotContainType:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:13: TypeDoesNotContainType: Type string for $this->class is always string (see https://psalm.dev/056)
|
InvalidStringClass:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
MixedArgument:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: MixedArgument: Argument 1 of array_column cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
MixedInferredReturnType:
src/Rule/InHandler.php#L20
src/Rule/InHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\InHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/InHandler.php#L22
src/Rule/InHandler.php:22:31: MissingDependency: Yiisoft\Validator\Rule\In depends on class or interface yiisoft\validator\dumpedruleinterface that does not exist (see https://psalm.dev/157)
|
psalm / PHP 8.3-ubuntu-latest
Process completed with exit code 2.
|
psalm / PHP 8.1-ubuntu-latest
The job was canceled because "ubuntu-latest_8_3" failed.
|
UndefinedClass:
src/Rule/In.php#L35
src/Rule/In.php:35:27: UndefinedClass: Class, interface or enum named Yiisoft\Validator\DumpedRuleInterface does not exist (see https://psalm.dev/019)
|
TypeDoesNotContainType:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:13: TypeDoesNotContainType: Type string for $this->class is always string (see https://psalm.dev/056)
|
InvalidStringClass:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
MixedArgument:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: MixedArgument: Argument 1 of array_column cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
MixedInferredReturnType:
src/Rule/InHandler.php#L20
src/Rule/InHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\InHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/InHandler.php#L22
src/Rule/InHandler.php:22:31: MissingDependency: Yiisoft\Validator\Rule\In depends on class or interface yiisoft\validator\dumpedruleinterface that does not exist (see https://psalm.dev/157)
|
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.
|
UndefinedClass:
src/Rule/In.php#L35
src/Rule/In.php:35:27: UndefinedClass: Class, interface or enum named Yiisoft\Validator\DumpedRuleInterface does not exist (see https://psalm.dev/019)
|
TypeDoesNotContainType:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:13: TypeDoesNotContainType: Type string for $this->class is always string (see https://psalm.dev/056)
|
UndefinedClass:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:71: UndefinedClass: Class, interface or enum named UnitEnum does not exist (see https://psalm.dev/019)
|
MixedArgument:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:71: MixedArgument: Argument 2 of is_subclass_of cannot be mixed, expecting class-string (see https://psalm.dev/030)
|
UndefinedClass:
src/Rule/InEnum.php#L103
src/Rule/InEnum.php:103:42: UndefinedClass: Class, interface or enum named BackedEnum does not exist (see https://psalm.dev/019)
|
MixedArgument:
src/Rule/InEnum.php#L103
src/Rule/InEnum.php:103:42: MixedArgument: Argument 2 of is_subclass_of cannot be mixed, expecting class-string (see https://psalm.dev/030)
|
UndefinedClass:
src/Rule/InEnum.php#L104
src/Rule/InEnum.php:104:33: UndefinedClass: Class, interface or enum named BackedEnum does not exist (see https://psalm.dev/019)
|
MixedArgument:
src/Rule/InEnum.php#L104
src/Rule/InEnum.php:104:33: MixedArgument: Argument 1 of array_column cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
InvalidStringClass:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
MixedArgument:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: MixedArgument: Argument 1 of array_column cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_3" failed.
|
UndefinedClass:
src/Rule/In.php#L35
src/Rule/In.php:35:27: UndefinedClass: Class, interface or enum named Yiisoft\Validator\DumpedRuleInterface does not exist (see https://psalm.dev/019)
|
TypeDoesNotContainType:
src/Rule/InEnum.php#L84
src/Rule/InEnum.php:84:13: TypeDoesNotContainType: Type string for $this->class is always string (see https://psalm.dev/056)
|
InvalidStringClass:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: InvalidStringClass: String cannot be used as a class (see https://psalm.dev/160)
|
MixedArgument:
src/Rule/InEnum.php#L107
src/Rule/InEnum.php:107:29: MixedArgument: Argument 1 of array_column cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
|
MixedInferredReturnType:
src/Rule/InHandler.php#L20
src/Rule/InHandler.php:20:87: MixedInferredReturnType: Could not verify return type 'Yiisoft\Validator\Result' for Yiisoft\Validator\Rule\InHandler::validate (see https://psalm.dev/047)
|
MissingDependency:
src/Rule/InHandler.php#L22
src/Rule/InHandler.php:22:31: MissingDependency: Yiisoft\Validator\Rule\In depends on class or interface yiisoft\validator\dumpedruleinterface that does not exist (see https://psalm.dev/157)
|
psalm / PHP 8.2-ubuntu-latest
The operation was canceled.
|