phalcon/ide-stubs

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

Closed this issue · 1 comments

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

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