Skip to content

Rewrite validation rule #49

Rewrite validation rule

Rewrite validation rule #49

Triggered via push January 20, 2025 23:13
Status Failure
Total duration 25s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
PHPStan: src/Rules/PostalCode.php#L81
Parameter #3 $fail (Closure(string, string|null=): Illuminate\Translation\PotentiallyTranslatedString) of method Axlon\PostalCodeValidation\Rules\PostalCode::validate() should be contravariant with parameter $fail (Closure(string): Illuminate\Translation\PotentiallyTranslatedString) of method Illuminate\Contracts\Validation\ValidationRule::validate()
PHPStan: src/Rules/PostalCodeExtension.php#L31
Call to an undefined method Illuminate\Contracts\Validation\Rule::setData().
PHPStan: src/Rules/PostalCodeExtension.php#L32
Call to an undefined method Illuminate\Contracts\Validation\Rule::setValidator().
PHPStan
Process completed with exit code 1.
PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636