Skip to content

Commit f85e664

Browse files
committed
#22637: Static test fix.
1 parent d859c0a commit f85e664

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/code/Magento/Ui/Component/Form/Element/AbstractOptionsField.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1010

1111
/**
12-
* Bse abstract form element.
12+
* Base abstract form element.
1313
*
14+
* phpcs:disable Magento2.Classes.AbstractApi
1415
* @api
1516
* @since 100.1.0
1617
*/
@@ -86,11 +87,14 @@ abstract public function getIsSelected($optionValue);
8687
*/
8788
protected function convertOptionsValueToString(array $options)
8889
{
89-
array_walk($options, function (&$value) {
90-
if (isset($value['value']) && is_scalar($value['value'])) {
91-
$value['value'] = (string)$value['value'];
90+
array_walk(
91+
$options,
92+
static function (&$value) {
93+
if (isset($value['value']) && is_scalar($value['value'])) {
94+
$value['value'] = (string)$value['value'];
95+
}
9296
}
93-
});
97+
);
9498
return $options;
9599
}
96100
}

0 commit comments

Comments
 (0)