Skip to content

Commit 158da38

Browse files
dontubjensschuppe
andauthored
Callback in array notation
Co-authored-by: jensschuppe <[email protected]>
1 parent 83df699 commit 158da38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Control/HtmlArrayFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function createFormArray(
5555

5656
$form = [
5757
'#type' => 'text_format',
58-
'#value_callback' => StringValueCallback::class . '::convert',
58+
'#value_callback' => [StringValueCallback::class, 'convert'],
5959
] + BasicFormPropertiesFactory::createFieldProperties($definition, $formState);
6060

6161
if (NULL !== $definition->getMaxLength()) {

0 commit comments

Comments
 (0)