Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Validator deprecation fixes #13338

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

Merged
merged 8 commits into from
Jan 9, 2015
Merged

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jan 8, 2015

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

$this->parseUsingPipe = null === $parseUsingPipe
? PHP_VERSION_ID >= 50307
: $parseUsingPipe;
$this->parseUsingPipe = null === $parseUsingPipe ? yes : $parseUsingPipe;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

||

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes ? You mean true instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can.

@fabpot fabpot force-pushed the validator-deprecation-fixes branch from 90bea09 to c108d5e Compare January 8, 2015 22:41
@fabpot fabpot force-pushed the validator-deprecation-fixes branch 4 times, most recently from 1159306 to 43b453b Compare January 9, 2015 13:20
@fabpot fabpot force-pushed the validator-deprecation-fixes branch from 43b453b to 22b9765 Compare January 9, 2015 13:24
@fabpot fabpot changed the title [WIP] Validator deprecation fixes Validator deprecation fixes Jan 9, 2015
@fabpot
Copy link
Member Author

fabpot commented Jan 9, 2015

Not WIP anymore, comments welcome. ping @symfony/deciders

@fabpot fabpot force-pushed the validator-deprecation-fixes branch from dcceb7f to 66741b0 Compare January 9, 2015 14:08
@fabpot fabpot force-pushed the validator-deprecation-fixes branch from 66741b0 to a34220e Compare January 9, 2015 14:24
@nicolas-grekas
Copy link
Member

👍

@fabpot fabpot merged commit a34220e into symfony:2.7 Jan 9, 2015
fabpot added a commit that referenced this pull request Jan 9, 2015
This PR was merged into the 2.7 branch.

Discussion
----------

Validator deprecation fixes

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

a34220e [Validator] always use the lazy loading metadata factory
818ca58 [Validator] removed usage of deprecated getMessageParameters() and getMessagePluralization() in unit tests
c6f1f69 [Validator] fixed deprecation notices for BuildViolation() calls in constraints
fb3f9d2 [Validator] fixed usage of deprecate Validator features
91606b5 [Validator] removed obsolete code
5aa44ee removed the Validator BC layer for PHP < 5.3.9
a4139c0 removed code for PHP < 5.3.9
6dc8979 bumped min PHP version to 5.3.9
@stof
Copy link
Member

stof commented Jan 9, 2015

@fabpot do we actually need to keep the 2.5 and 2.5-bc API levels ? In all other places, the BC layer is in the new class rather than in a child of the new class. the only reason it has been added in a child in 2.5 is because of the support for old PHP 5.3.x versions forbidding to use a single class.
IMO, dropping the choice of the API level entirely would be better

@fabpot
Copy link
Member Author

fabpot commented Jan 9, 2015

@stof Indeed, that would make sense. Do you time to work on that? I must admit that I'm a bit tired of my week working on those kind of things. That's exhausting :)

@stof
Copy link
Member

stof commented Jan 9, 2015

probably not until the weekend next week (unless I work on it on an evening during the next week). I planned to work on documentation for Mink this weekend (and doing non-programming stuff)

@fabpot
Copy link
Member Author

fabpot commented Jan 9, 2015

@saro0h is going to try to do that this week-end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants