minor #14819 [Yaml] [Validator] Removed conditional @deprecated tags and moved their descriptions to the method description as a note (gerritdrost)

This PR was submitted for the 2.7 branch but it was merged into the 2.6 branch instead (closes #14819).

Discussion
----------

[Yaml] [Validator] Removed conditional @deprecated tags and moved their descriptions to the method description as a note

[Yaml] [Validator] Removed conditional @deprecated tags and moved their descriptions to the method description as a note.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14815
| License       | MIT

Commits
-------

17b4251 Issue #14815
This commit is contained in:
Fabien Potencier 2015-06-05 21:54:11 +02:00
commit 75d5d547bb
2 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,8 @@ interface ExecutionContextInterface
/**
* Adds a violation at the current node of the validation graph.
*
* Note: the parameters $invalidValue, $plural and $code are deprecated since version 2.5 and will be removed in 3.0.
*
* @param string $message The error message
* @param array $params The parameters substituted in the error message
* @param mixed $invalidValue The invalid, validated value

View File

@ -38,6 +38,8 @@ class Yaml
* you must validate the input before calling this method. Passing a file
* as an input is a deprecated feature and will be removed in 3.0.
*
* Note: the ability to pass file names to the Yaml::parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.
*
* @param string $input Path to a YAML file or a string containing YAML
* @param bool $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise
* @param bool $objectSupport True if object support is enabled, false otherwise