Skip to content

Commit d0012c5

Browse files
committed
[2.7][DX] Use constant message contextualisation for deprecations
1 parent 1902adb commit d0012c5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

OptionsResolver.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function setNormalizer($option, \Closure $normalizer)
420420
*/
421421
public function setNormalizers(array $normalizers)
422422
{
423-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
423+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
424424

425425
foreach ($normalizers as $option => $normalizer) {
426426
$this->setNormalizer($option, $normalizer);
@@ -1029,7 +1029,7 @@ public function count()
10291029
*/
10301030
public function set($option, $value)
10311031
{
1032-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefaults() method instead.', E_USER_DEPRECATED);
1032+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefaults() method instead.', E_USER_DEPRECATED);
10331033

10341034
return $this->setDefault($option, $value);
10351035
}
@@ -1041,7 +1041,7 @@ public function set($option, $value)
10411041
*/
10421042
public function replace(array $defaults)
10431043
{
1044-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
1044+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
10451045

10461046
$this->clear();
10471047

@@ -1055,7 +1055,7 @@ public function replace(array $defaults)
10551055
*/
10561056
public function overload($option, $value)
10571057
{
1058-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefault() method instead.', E_USER_DEPRECATED);
1058+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefault() method instead.', E_USER_DEPRECATED);
10591059

10601060
return $this->setDefault($option, $value);
10611061
}
@@ -1067,7 +1067,7 @@ public function overload($option, $value)
10671067
*/
10681068
public function get($option)
10691069
{
1070-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
1070+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
10711071

10721072
return $this->offsetGet($option);
10731073
}
@@ -1079,7 +1079,7 @@ public function get($option)
10791079
*/
10801080
public function has($option)
10811081
{
1082-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
1082+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
10831083

10841084
return $this->offsetExists($option);
10851085
}
@@ -1091,7 +1091,7 @@ public function has($option)
10911091
*/
10921092
public function replaceDefaults(array $defaultValues)
10931093
{
1094-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
1094+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
10951095

10961096
$this->clear();
10971097

@@ -1105,7 +1105,7 @@ public function replaceDefaults(array $defaultValues)
11051105
*/
11061106
public function setOptional(array $optionNames)
11071107
{
1108-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefined() method instead.', E_USER_DEPRECATED);
1108+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefined() method instead.', E_USER_DEPRECATED);
11091109

11101110
return $this->setDefined($optionNames);
11111111
}
@@ -1117,7 +1117,7 @@ public function setOptional(array $optionNames)
11171117
*/
11181118
public function isKnown($option)
11191119
{
1120-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the isDefined() method instead.', E_USER_DEPRECATED);
1120+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the isDefined() method instead.', E_USER_DEPRECATED);
11211121

11221122
return $this->isDefined($option);
11231123
}

0 commit comments

Comments
 (0)