File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
app/code/Magento/Ui/Component/Form/Element Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
10
10
11
11
/**
12
- * Bse abstract form element.
12
+ * Base abstract form element.
13
13
*
14
+ * phpcs:disable Magento2.Classes.AbstractApi
14
15
* @api
15
16
* @since 100.1.0
16
17
*/
@@ -86,11 +87,14 @@ abstract public function getIsSelected($optionValue);
86
87
*/
87
88
protected function convertOptionsValueToString (array $ options )
88
89
{
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
+ }
92
96
}
93
- } );
97
+ );
94
98
return $ options ;
95
99
}
96
100
}
You can’t perform that action at this time.
0 commit comments