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
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -457,7 +457,7 @@ public function setAllowedValues($option, $allowedValues = null)
457
457
}
458
458
459
459
// BC
460
-
if (is_array($option) && null === $allowedValues) {
460
+
if (\is_array($option) && null === $allowedValues) {
461
461
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since Symfony 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
462
462
463
463
foreach ($optionas$optionName => $optionValues) {
@@ -475,7 +475,7 @@ public function setAllowedValues($option, $allowedValues = null)
@@ -513,7 +513,7 @@ public function addAllowedValues($option, $allowedValues = null)
513
513
}
514
514
515
515
// BC
516
-
if (is_array($option) && null === $allowedValues) {
516
+
if (\is_array($option) && null === $allowedValues) {
517
517
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since Symfony 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
518
518
519
519
foreach ($optionas$optionName => $optionValues) {
@@ -531,7 +531,7 @@ public function addAllowedValues($option, $allowedValues = null)
531
531
));
532
532
}
533
533
534
-
if (!is_array($allowedValues)) {
534
+
if (!\is_array($allowedValues)) {
535
535
$allowedValues = array($allowedValues);
536
536
}
537
537
@@ -569,7 +569,7 @@ public function setAllowedTypes($option, $allowedTypes = null)
569
569
}
570
570
571
571
// BC
572
-
if (is_array($option) && null === $allowedTypes) {
572
+
if (\is_array($option) && null === $allowedTypes) {
573
573
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since Symfony 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
574
574
575
575
foreach ($optionas$optionName => $optionTypes) {
@@ -619,7 +619,7 @@ public function addAllowedTypes($option, $allowedTypes = null)
619
619
}
620
620
621
621
// BC
622
-
if (is_array($option) && null === $allowedTypes) {
622
+
if (\is_array($option) && null === $allowedTypes) {
623
623
@trigger_error('Calling the '.__METHOD__.' method with an array of options is deprecated since Symfony 2.6 and will be removed in 3.0. Use the new signature with a single option instead.', E_USER_DEPRECATED);
624
624
625
625
foreach ($optionas$optionName => $optionTypes) {
@@ -735,12 +735,12 @@ public function resolve(array $options = array())
0 commit comments