Skip to content

Commit 8a3e0c4

Browse files
authored
Fix missing spaces
1 parent ec6dd6d commit 8a3e0c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,14 @@ component use a ``PreMount`` hook::
483483

484484
.. note::
485485

486-
In its default configuration, the OptionsResolver treats all props.
487-
However, if more props are passed than the options defined in the OptionsResolver, an error will be prompted, indicating that one or more options do not exist.
486+
In its default configuration, the OptionsResolver treats all props.
487+
However, if more props are passed than the options defined in the OptionsResolver, an error will be prompted, indicating that one or more options do not exist.
488488
To avoid this, use the `ignoreUndefined()` method with `true`. See `ignore not defined options`_ for more info.
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. To maintain props that have not been defined within the OptionsResolver, combine the data from the hook with the resolved data.
492+
The major drawback of this configuration is that the OptionsResolver will remove every non-defined option when resolving data.
493+
To maintain props that have not been defined within the OptionsResolver, combine the data from the hook with the resolved data.
493494

494495
return $resolver->resolve($data) + $data;
495496

0 commit comments

Comments
 (0)