In Laminas\Validator\ValidatorInterface
there’s isValid($value)
, but some of the Validators, like Laminas\Validator\Callback
, have isValid($value, $context)
.
Is there a reason the context isn’t defined in the Interface?
In Laminas\Validator\ValidatorInterface
there’s isValid($value)
, but some of the Validators, like Laminas\Validator\Callback
, have isValid($value, $context)
.
Is there a reason the context isn’t defined in the Interface?
I would imagine because its not part of the contract. Its specific to the validator(s) that accept it.