Skip to content

add DateRule (#602) #4310

add DateRule (#602)

add DateRule (#602) #4310

Triggered via pull request January 15, 2024 18:25
Status Failure
Total duration 40s
Artifacts

static.yml

on: pull_request
Matrix: psalm / psalm
Fit to window
Zoom out
Zoom in

Annotations

13 errors
MixedInferredReturnType: src/Rule/Trait/SkipOnEmptyTrait.php#L44
src/Rule/Trait/SkipOnEmptyTrait.php:44:16: MixedInferredReturnType: Could not verify return type 'bool|callable|null' for Yiisoft\Validator\Rule\Trait\SkipOnEmptyTrait::getSkipOnEmpty (see https://psalm.dev/047)
MixedReturnTypeCoercion: src/Rule/Trait/WhenTrait.php#L49
src/Rule/Trait/WhenTrait.php:49:22: MixedReturnTypeCoercion: The declared return type 'Closure(mixed, Yiisoft\Validator\ValidationContext):bool|null' for Yiisoft\Validator\Rule\Trait\WhenTrait::getWhen is more specific than the inferred return type 'Closure|null' (see https://psalm.dev/197)
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
MixedInferredReturnType: src/Rule/Trait/SkipOnEmptyTrait.php#L44
src/Rule/Trait/SkipOnEmptyTrait.php:44:16: MixedInferredReturnType: Could not verify return type 'bool|callable|null' for Yiisoft\Validator\Rule\Trait\SkipOnEmptyTrait::getSkipOnEmpty (see https://psalm.dev/047)
MixedReturnTypeCoercion: src/Rule/Trait/WhenTrait.php#L49
src/Rule/Trait/WhenTrait.php:49:22: MixedReturnTypeCoercion: The declared return type 'Closure(mixed, Yiisoft\Validator\ValidationContext):bool|null' for Yiisoft\Validator\Rule\Trait\WhenTrait::getWhen is more specific than the inferred return type 'Closure|null' (see https://psalm.dev/197)
psalm / PHP 8.2-ubuntu-latest
The operation was canceled.
psalm / PHP 8.0-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
MixedInferredReturnType: src/Rule/Trait/SkipOnEmptyTrait.php#L44
src/Rule/Trait/SkipOnEmptyTrait.php:44:16: MixedInferredReturnType: Could not verify return type 'bool|callable|null' for Yiisoft\Validator\Rule\Trait\SkipOnEmptyTrait::getSkipOnEmpty (see https://psalm.dev/047)
InvalidReturnType: src/Rule/Trait/WhenTrait.php#L49
src/Rule/Trait/WhenTrait.php:49:22: InvalidReturnType: The declared return type 'Closure(mixed, Yiisoft\Validator\ValidationContext):bool|null' for Yiisoft\Validator\Rule\Trait\WhenTrait::getWhen is incorrect, got 'Closure|null' (see https://psalm.dev/011)
PossiblyUndefinedMethod: src/Validator.php#L133
src/Validator.php:133:95: PossiblyUndefinedMethod: Method Yiisoft\Validator\LabelsProviderInterface::getData does not exist (see https://psalm.dev/108)
PossiblyUndefinedMethod: src/Validator.php#L137
src/Validator.php:137:44: PossiblyUndefinedMethod: Method Yiisoft\Validator\LabelsProviderInterface::getAttributeValue does not exist (see https://psalm.dev/108)
psalm / PHP 8.0-ubuntu-latest
The operation was canceled.