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
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
The PostCode validator allows additional validations via an optional service callback. The callback runs before the standard validation of the PostCode class.
Internally, the additional validation is done by zend-validator's Callback class.
But:
this functionality was never documented
the usage of a validator within another validator is confusing
this functionality is not available in other validators
Alternative
As an alternative to the additional validation, a validator chain should be used.
Deprecation
It should be deprecated in the next minor version (2.11.0) and removed with the next major version (3.0.0).
Problem
The
PostCode
validator allows additional validations via an optional service callback. The callback runs before the standard validation of thePostCode
class.Internally, the additional validation is done by zend-validator's
Callback
class.But:
Alternative
As an alternative to the additional validation, a validator chain should be used.
Deprecation
It should be deprecated in the next minor version (2.11.0) and removed with the next major version (3.0.0).
Code Reference
zend-i18n/src/Validator/PostCode.php
Lines 307 to 327 in c6c465a
zend-i18n/src/Validator/PostCode.php
Lines 368 to 387 in c6c465a
The text was updated successfully, but these errors were encountered: