Skip to content

Commit fe517d4

Browse files
cavasinfWebMamba
andauthored
Update src/TwigComponent/doc/index.rst
Co-authored-by: Matheo D. <[email protected]>
1 parent 818eb07 commit fe517d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ component use a ``PreMount`` hook::
489489

490490
$resolver->setIgnoreUndefined(true);
491491

492-
The major drawback of this configuration is that the OptionsResolver will remove every non-defined option when resolving data.
493-
In order to maintain the props that have not been defined within the option resolver, it is necessary to combine the data from the hook with the result of the resolved data.
492+
The major drawback of this configuration is that the OptionsResolver will remove every non-defined option when resolving data. To maintain props that have not been defined within the OptionsResolver, combine the data from the hook with the resolved data.
494493

495494
return $resolver->resolve($data) + $data;
496495

0 commit comments

Comments
 (0)