Skip to content

Commit 596cc30

Browse files
committed
Fix CS and remove unused argument
1 parent 2aa2fa9 commit 596cc30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LiveComponent/src/LiveCollectionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function addCollectionItem(PropertyAccessorInterface $propertyAccessor, #
3333

3434
$data = $propertyAccessor->getValue($this->formValues, $name);
3535

36-
if (!is_array($data)) {
36+
if (!\is_array($data)) {
3737
$propertyAccessor->setValue($this->formValues, $name, []);
3838
$data = [];
3939
}

src/LiveComponent/src/Resources/views/form_theme.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% if button_add_prototype is defined and not button_add_prototype.rendered %}
1111
{{ form_row(button_add_prototype, { attr: button_add_prototype.vars.attr|merge({
1212
'data-action': 'live#action',
13-
'data-action-name': 'addCollectionItem(name=' ~ form.vars.full_name ~ ', index=' ~ (form.children is empty ? 0 : max(form.children|keys)) ~ ')'
13+
'data-action-name': 'addCollectionItem(name=' ~ form.vars.full_name ~ ')'
1414
}) }) }}
1515
{% endif %}
1616
</div>

0 commit comments

Comments
 (0)