Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

#6386 Add Priority system for validators #6496

Closed
wants to merge 2 commits into from
Closed

#6386 Add Priority system for validators #6496

wants to merge 2 commits into from

Conversation

MadCat34
Copy link
Contributor

This PR is for #6386

I made lot of shit on previous branch...
I have deleted it and have just recreated it...

@adamlundrigan
Copy link
Contributor

Could you also write a blurb for the documentation (here? https://raw.githubusercontent.com/zendframework/zf2-documentation/master/docs/languages/en/modules/zend.validator.rst) about validator priorities?

@RomainBastide
Copy link

Hi Adam,
Ok for documentation.
But I need to work again on this point...Some tests have failed ...

Ocramius added a commit that referenced this pull request Nov 19, 2014
Ocramius added a commit that referenced this pull request Nov 19, 2014
Ocramius added a commit that referenced this pull request Nov 19, 2014
Ocramius added a commit that referenced this pull request Nov 19, 2014
Ocramius added a commit that referenced this pull request Nov 19, 2014
@Ocramius Ocramius self-assigned this Nov 19, 2014
@Ocramius
Copy link
Member

@MadCat34 I've tweaked, rebased and merged your PR into develop at 18f8762, thanks!

@Ocramius Ocramius closed this Nov 19, 2014
@RomainBastide
Copy link

Thanks @Ocramius :-)
I will look what you've done to understand what I missed and how I could have done better :-)

@Ocramius
Copy link
Member

@RomainBastide I just did some house-holding, no substantial changes :-)

Ocramius added a commit to Ocramius/zf2 that referenced this pull request Nov 22, 2014
…lidatorChain#merge()` method, which presents internal type mismatches
Ocramius added a commit to Ocramius/zf2 that referenced this pull request Nov 22, 2014
…ly to `ValidatorChain#attach()` by `ValidatorChain#merge()`
Ocramius added a commit to Ocramius/zf2 that referenced this pull request Nov 22, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request Nov 22, 2014
…d, as the validator chain is now deep-cloned
Ocramius added a commit that referenced this pull request Nov 22, 2014
…hain-merge-type-mismatch

Hotfix: #6386 #6496 validator chain merge type mismatch
@adamlundrigan
Copy link
Contributor

This PR causes a failure on hhvm-nightly: https://travis-ci.org/zendframework/zf2/jobs/57417573#L719

1) ZendTest\InputFilter\ArrayInputTest::testIsValidReturnsFalseIfValidationChainFails
Undefined index: 0
/home/travis/build/zendframework/zf2/library/Zend/Validator/ValidatorChain.php:162

Runs fine on hhvm, so I guess something changed in HHVM 3.5.0?

gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…alidator chain should reject invalid callbacks
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…inor cleanups, simplifying checks around `$callback` validity
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…dding `@group` annotations for newly introduced tests
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…nlining `$this->attach()` and `$this->plugin()` calls
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…everting minor bc-break (`attach` method should keep a compatible signature)
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…emoving useless test that checks against an invalid type-hint usage
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…dding test for uncovered `ValidatorChain#merge()` method, which presents internal type mismatches
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…ixing values passed internally to `ValidatorChain#attach()` by `ValidatorChain#merge()`
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…ValidatorChain` can be cloned, as the validator chain is now deep-cloned
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants