-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PHP Deprecated: Creation of dynamic property $zfBreakChainOnFailure from Zend_Form_Element #440
Fix PHP Deprecated: Creation of dynamic property $zfBreakChainOnFailure from Zend_Form_Element #440
Conversation
Not sure if related, but probably: Run bin/parallel-lint --exclude vendor --exclude tests/Zend/Loader/_files/ParseError.php . --checkstyle | cs2pr |
There were 8 failures:
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:328
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:347
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:705
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:725
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:753
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:1739
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:1765
/home/runner/work/zf1-future/zf1-future/tests/Zend/Form/ElementTest.php:2228 |
Tests are now OK, this one will be probably the last one, before the next release. I looked into this one. It$s fixing the problem described, and on the top of that, it's changing the breakOnFailure chain behavior. Could you please a bit more describe why is this change necessary? Thanks in advance. |
Hi. @develart-projects , I believe the fix is necessary for the following reasons:
|
To reproduce the issue, I wrote a custom validator that implements
Zend_Validate_Interface
:I then attached the custom validator to an element:
Error encountered:
PHP Deprecated: Creation of dynamic property Validator_JSON::$zfBreakChainOnFailure is deprecated in Zend/Form/Element.php on line 1229