Skip to content

Commit 51b955a

Browse files
committed
replace deprecated options resolver uses by new ones
1 parent d64b060 commit 51b955a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OptionsResolver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public function setAllowedValues($option, $allowedValues = null)
466466

467467
// BC
468468
if (is_array($option) && null === $allowedValues) {
469-
trigger_error('Calling the '.__METHOD__.' method with an array 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);
469+
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);
470470

471471
foreach ($option as $optionName => $optionValues) {
472472
$this->setAllowedValues($optionName, $optionValues);
@@ -522,7 +522,7 @@ public function addAllowedValues($option, $allowedValues = null)
522522

523523
// BC
524524
if (is_array($option) && null === $allowedValues) {
525-
trigger_error('Calling the '.__METHOD__.' method with an array 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);
525+
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);
526526

527527
foreach ($option as $optionName => $optionValues) {
528528
$this->addAllowedValues($optionName, $optionValues);
@@ -576,7 +576,7 @@ public function setAllowedTypes($option, $allowedTypes = null)
576576

577577
// BC
578578
if (is_array($option) && null === $allowedTypes) {
579-
trigger_error('Calling the '.__METHOD__.' method with an array 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);
579+
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);
580580

581581
foreach ($option as $optionName => $optionTypes) {
582582
$this->setAllowedTypes($optionName, $optionTypes);
@@ -626,7 +626,7 @@ public function addAllowedTypes($option, $allowedTypes = null)
626626

627627
// BC
628628
if (is_array($option) && null === $allowedTypes) {
629-
trigger_error('Calling the '.__METHOD__.' method with an array 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);
629+
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);
630630

631631
foreach ($option as $optionName => $optionTypes) {
632632
$this->addAllowedTypes($optionName, $optionTypes);

0 commit comments

Comments
 (0)