Skip to content

Commit d47623a

Browse files
Merge branch '3.3' into 3.4
* 3.3: [DI] Remove unused props from the PhpDumper [VarDumper] Keep and reuse array stubs in memory [ProxyManager] Cleanup fixtures [Console][WebServerBundle] Use "exec" when possible [Debug] HTML-escape array key Add some phpdocs for IDE autocompletion and better SCA Fixed typo in docblock
2 parents fba61c6 + c2fcb2f commit d47623a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Extension/Core/EventListener/ResizeFormListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Form\FormEvent;
1616
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1717
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
18+
use Symfony\Component\Form\FormInterface;
1819

1920
/**
2021
* Resize a collection form element based on the data sent from the client.
@@ -150,6 +151,7 @@ public function onSubmit(FormEvent $event)
150151

151152
if ($entryFilter = $this->deleteEmpty) {
152153
$previousData = $form->getData();
154+
/** @var FormInterface $child */
153155
foreach ($form as $name => $child) {
154156
$isNew = !isset($previousData[$name]);
155157
$isEmpty = is_callable($entryFilter) ? $entryFilter($child->getData()) : $child->isEmpty();

Extension/Core/Type/ChoiceType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
116116
// Reconstruct the data as mapping from child names to values
117117
$data = array();
118118

119+
/** @var FormInterface $child */
119120
foreach ($form as $child) {
120121
$value = $child->getConfig()->getOption('value');
121122

Extension/Validator/Constraints/FormValidator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function validate($form, Constraint $constraint)
7878
} else {
7979
$childrenSynchronized = true;
8080

81+
/** @var FormInterface $child */
8182
foreach ($form as $child) {
8283
if (!$child->isSynchronized()) {
8384
$childrenSynchronized = false;

0 commit comments

Comments
 (0)