Skip to content

[Validator] Add deprecated logs on addViolation() and addViolationAt() methods #13219

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

Closed

Conversation

stof
Copy link
Member

@stof stof commented Jan 3, 2015

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #12686, #12688
License MIT
Doc PR

This replaces #12714 by adding the deprecation warnings in the right class and updating them to match our standards.

@@ -58,6 +58,11 @@ public function __construct(ValidatorInterface $validator, $root, MetadataFactor
public function addViolation($message, array $parameters = array(), $invalidValue = null, $plural = null, $code = null)
{
if (func_num_args() > 2) {
trigger_error(
Copy link
Member

Choose a reason for hiding this comment

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

Single line please

@stof stof force-pushed the validation_execution_context_deprecations branch from e840634 to 2ea9ce1 Compare January 3, 2015 14:00
@stof
Copy link
Member Author

stof commented Jan 3, 2015

updated

@@ -77,6 +79,11 @@ public function addViolation($message, array $parameters = array(), $invalidValu
*/
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $plural = null, $code = null)
{
trigger_error(
Copy link
Member

Choose a reason for hiding this comment

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

Single line

@stof
Copy link
Member Author

stof commented Jan 3, 2015

Actually, #13060 is already covering this, so I'm closing this PR in favor of the PR handling the deprecation warnings in batch.

@stof stof closed this Jan 3, 2015
@stof stof deleted the validation_execution_context_deprecations branch January 3, 2015 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants