8000 merged branch bschussek/bugfix (PR #6630) · symfony/symfony@b981a6f · GitHub
[go: up one dir, main page]

Skip to content

Commit b981a6f

Browse files
committed
merged branch bschussek/bugfix (PR #6630)
This PR was merged into the master branch. Commits ------- c1aff96 [Form] Fixed regression introduced when merging 2.1 into master Discussion ---------- [Form] Fixed regression introduced when merging 2.1 into master Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: -
2 parents 3a4869d + c1aff96 commit b981a6f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/Symfony/Component/Form/FormBuilder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ public function getFormConfig()
211211
{
212212
$config = parent::getFormConfig();
213213

214-
$config->factory = null;
215214
$config->parent = null;
216215
$config->children = array();
217216
$config->unresolvedChildren = array();

src/Symfony/Component/Form/Tests/FormBuilderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,14 @@ public function testGetFormConfigErasesReferences()
247247

248248
$config = $builder->getFormConfig();
249249
$reflClass = new \ReflectionClass($config);
250-
$factory = $reflClass->getProperty('factory');
251250
$parent = $reflClass->getProperty('parent');
252251
$children = $reflClass->getProperty('children');
253252
$unresolvedChildren = $reflClass->getProperty('unresolvedChildren');
254253

255-
$factory->setAccessible(true);
256254
$parent->setAccessible(true);
257255
$children->setAccessible(true);
258256
$unresolvedChildren->setAccessible(true);
259257

260-
$this->assertNull($factory->getValue($config));
261258
$this->assertNull($parent->getValue($config));
262259
$this->assertEmpty($children->getValue($config));
263260
$this->assertEmpty($unresolvedChildren->getValue($config));

0 commit comments

Comments
 (0)
0