phalcon / ide-stubs

Phalcon IDE Stubs
https://phalcon.io
Other
158 stars 50 forks source link

MethodSignatureMismatch AbstractValidator::getOption has wrong type 'mixed', expecting 'string' #56

Closed RayHughes closed 2 years ago

RayHughes commented 4 years ago
ERROR: MethodSignatureMismatch - src/Common/Validation/IsBool.php:11:7 - Argument 1 of Phalcon\Validation\AbstractValidator::getOption has wrong type 'mixed', expecting 'string' as defined by Phalcon\Validation\ValidatorInterface::getOption (see https://psalm.dev/042)

Not sure if this can be changed in the repo or if phalcon itself allows a mixed type here. For now suppressing the error.

niden commented 2 years ago

I double checked the latest stubs and both method signatures are the same with string.

It this appears again please reopen this ticket. Thanks for reporting it @RayHughes