We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8c69a commit a139b2aCopy full SHA for a139b2a
Form.php
@@ -170,6 +170,8 @@ public function __construct(FormConfigInterface $config)
170
171
public function __clone()
172
{
173
+ $this->children = clone $this->children;
174
+
175
foreach ($this->children as $key => $child) {
176
$this->children[$key] = clone $child;
177
}
Tests/CompoundFormTest.php
@@ -141,6 +141,7 @@ public function testCloneChildren()
141
142
$this->assertNotSame($this->form, $clone);
143
$this->assertNotSame($child, $clone['child']);
144
+ $this->assertNotSame($this->form['child'], $clone['child']);
145
146
147
public function testNotEmptyIfChildNotEmpty()
0 commit comments