Rewrite validation rule #49
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
|