This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
\Zend\Form\Element\Email, with multiple=true leads to “Array to string conversion” #5796
Comments
Closed
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Feb 10, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Feb 10, 2014
Great! That was the fix I was thinking too, but I didn't want to sound overly smart ;-) |
weierophinney
added a commit
that referenced
this issue
Mar 4, 2014
to test the specific behavior as reported in #5796. Test now fails before the patch, passes afterwards.
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
weierophinney
added a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…ix/multiple-invalid-explodevalidator Fixes zendframework/zendframework#5796
weierophinney
added a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
to test the specific behavior as reported in zendframework/zendframework#5796. Test now fails before the patch, passes afterwards.
weierophinney
added a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
PHP throws a notice when validating a Email FormElement with multiple set to true.
I set-up a form like below:
ZF2 automatically adds an e-mailaddress validator (
\Zend\Validator\EmailAddress
). And ( because I set 'multiple' => true in it's attributes ) an explode validator (\Zend\Validator\Explode
), which should run the e-mailaddress validator for every value once exploded using the separator ( by default a ',' ), according to the manual that is.The tests:
I recreated the bug in a separate module for the standard ZendSkeletonApplication.
( You can clone my tests from github here:
git clone https://github.com/Satsume/ZendSkeletonApplication-Tests.git --recursive
. Once installed go to /tests/ to see the form. )The text was updated successfully, but these errors were encountered: