You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OptionsResolver.php
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -439,7 +439,7 @@ public function setNormalizer($option, \Closure $normalizer)
439
439
*/
440
440
publicfunctionsetNormalizers(array$normalizers)
441
441
{
442
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
442
+
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
443
443
444
444
foreach ($normalizersas$option => $normalizer) {
445
445
$this->setNormalizer($option, $normalizer);
@@ -477,7 +477,7 @@ public function setAllowedValues($option, $allowedValues = null)
477
477
478
478
// BC
479
479
if (is_array($option) && null === $allowedValues) {
480
-
trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
480
+
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
@@ -533,7 +533,7 @@ public function addAllowedValues($option, $allowedValues = null)
533
533
534
534
// BC
535
535
if (is_array($option) && null === $allowedValues) {
536
-
trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
536
+
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
@@ -589,7 +589,7 @@ public function setAllowedTypes($option, $allowedTypes = null)
589
589
590
590
// BC
591
591
if (is_array($option) && null === $allowedTypes) {
592
-
trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
592
+
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
@@ -639,7 +639,7 @@ public function addAllowedTypes($option, $allowedTypes = null)
639
639
640
640
// BC
641
641
if (is_array($option) && null === $allowedTypes) {
642
-
trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
642
+
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
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);
1035
+
@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);
1036
1036
1037
1037
return$this->setDefault($option, $value);
1038
1038
}
@@ -1044,7 +1044,7 @@ public function set($option, $value)
1044
1044
*/
1045
1045
publicfunctionreplace(array$defaults)
1046
1046
{
1047
-
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);
1047
+
@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);
1048
1048
1049
1049
$this->clear();
1050
1050
@@ -1058,7 +1058,7 @@ public function replace(array $defaults)
1058
1058
*/
1059
1059
publicfunctionoverload($option, $value)
1060
1060
{
1061
-
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);
1061
+
@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);
1062
1062
1063
1063
return$this->setDefault($option, $value);
1064
1064
}
@@ -1070,7 +1070,7 @@ public function overload($option, $value)
1070
1070
*/
1071
1071
publicfunctionget($option)
1072
1072
{
1073
-
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);
1073
+
@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);
1074
1074
1075
1075
return$this->offsetGet($option);
1076
1076
}
@@ -1082,7 +1082,7 @@ public function get($option)
1082
1082
*/
1083
1083
publicfunctionhas($option)
1084
1084
{
1085
-
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);
1085
+
@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);
1086
1086
1087
1087
return$this->offsetExists($option);
1088
1088
}
@@ -1094,7 +1094,7 @@ public function has($option)
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);
1097
+
@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);
1098
1098
1099
1099
$this->clear();
1100
1100
@@ -1108,7 +1108,7 @@ public function replaceDefaults(array $defaultValues)
1108
1108
*/
1109
1109
publicfunctionsetOptional(array$optionNames)
1110
1110
{
1111
-
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);
1111
+
@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);
1112
1112
1113
1113
return$this->setDefined($optionNames);
1114
1114
}
@@ -1120,7 +1120,7 @@ public function setOptional(array $optionNames)
1120
1120
*/
1121
1121
publicfunctionisKnown($option)
1122
1122
{
1123
-
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);
1123
+
@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);
0 commit comments