You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. The StaticValidator interface indicates for example that the static method stringType returns a ChainedValidator, but in reality it returns a Validator.
This behavior for example causes PhpStorm to report a warning incorrectly: Expected parameter of type '\Respect\Validation\Validator', '\Respect\Validation\ChainedValidator' provided
The text was updated successfully, but these errors were encountered:
Using the Validatable interface instead of Validator façade will make PhpStorm typing checks work.
We don't recommend reusing the façade as a composition in your internal code. If you're building validators dynamically, you should read about the Concrete API and create new Rules\... by yourself.
Hello. The
StaticValidator
interface indicates for example that the static methodstringType
returns aChainedValidator
, but in reality it returns aValidator
.Example:
This behavior for example causes PhpStorm to report a warning incorrectly:
Expected parameter of type '\Respect\Validation\Validator', '\Respect\Validation\ChainedValidator' provided
The text was updated successfully, but these errors were encountered: