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 08b7874 commit 5f5077fCopy full SHA for 5f5077f
src/Symfony/Component/Form/Extension/DataCollector/FormDataExtractor.php
@@ -15,6 +15,7 @@
15
use Symfony\Component\Form\FormView;
16
use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter;
17
use Symfony\Component\Validator\ConstraintViolationInterface;
18
+use Symfony\Component\VarDumper\Caster\CutStub;
19
20
/**
21
* Default implementation of {@link FormDataExtractorInterface}.
@@ -155,6 +156,10 @@ public function extractViewVariables(FormView $view)
155
156
);
157
158
foreach ($view->vars as $varName => $value) {
159
+ // Removing redundant variable from view variables
160
+ if ('form' === $varName) {
161
+ $value = new CutStub($value);
162
+ }
163
$data['view_vars'][$varName] = $value;
164
}
165
0 commit comments