Skip to content

Add UUID validation rule, and test #4667

Add UUID validation rule, and test

Add UUID validation rule, and test #4667

Triggered via pull request December 13, 2024 13:52
Status Failure
Total duration 35s
Artifacts

static.yml

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

Annotations

10 errors and 2 warnings
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)
MixedArgument: src/Rule/UuidHandler.php#L30
src/Rule/UuidHandler.php:30:33: MixedArgument: Argument 1 of Yiisoft\Validator\Rule\UuidHandler::validateUuid cannot be mixed, expecting string (see https://psalm.dev/030)
psalm / PHP 8.2-ubuntu-latest
Process completed with exit code 2.
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)
MixedArgument: src/Rule/UuidHandler.php#L30
src/Rule/UuidHandler.php:30:33: MixedArgument: Argument 1 of Yiisoft\Validator\Rule\UuidHandler::validateUuid cannot be mixed, expecting string (see https://psalm.dev/030)
psalm83 / 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_2" failed.
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)
MixedArgument: src/Rule/UuidHandler.php#L30
src/Rule/UuidHandler.php:30:33: MixedArgument: Argument 1 of Yiisoft\Validator\Rule\UuidHandler::validateUuid cannot be mixed, expecting string (see https://psalm.dev/030)
psalm / PHP 8.1-ubuntu-latest
The operation was canceled.
psalm / PHP 8.2-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
psalm83 / PHP 8.3-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636