Skip to content

Commit cab6582

Browse files
Merge branch '3.4'
* 3.4: [DI] Remove unused props from the PhpDumper [VarDumper] Keep and reuse array stubs in memory [DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode() [Workflow] Adding workflow name to the announce event [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 04c4f70 + d47623a commit cab6582

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.
@@ -146,6 +147,7 @@ public function onSubmit(FormEvent $event)
146147

147148
if ($entryFilter = $this->deleteEmpty) {
148149
$previousData = $form->getData();
150+
/** @var FormInterface $child */
149151
foreach ($form as $name => $child) {
150152
$isNew = !isset($previousData[$name]);
151153
$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)