Skip to content

Commit f65ad3a

Browse files
committed
Formatting/Spelling fixes
1 parent 5dfc8b2 commit f65ad3a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/property_access/introduction.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ method. This is done using the index notation that is used in PHP::
4949
.. caution::
5050

5151
As you can see, the method will return ``null`` if the index does not exists.
52-
To make it throw an exception in case of invalid index, set the first argument
52+
To make it throw an exception in case of invalid index, set the first argument of
5353
:method:`PropertyAccess::createPropertyAccessor<Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor()>`
54-
to true, e.g. ``PropertyAccess::createPropertyAccessor(true)``.
54+
to ``true``, e.g. ``PropertyAccess::createPropertyAccessor(true)``.
5555

5656
You can also use multi dimensional arrays::
5757

@@ -329,9 +329,8 @@ instead::
329329
.. caution::
330330

331331
Calling :method:`PropertyAccess::createPropertyAccessor<Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor()>`
332-
with an array for an invalid index would always return ``true``. To make it return ``false``, set the first argument
333-
:method:`PropertyAccess::createPropertyAccessor<Symfony\\Component\\PropertyAccess\\PropertyAccess::createPropertyAccessor()>`
334-
to true, e.g. ``PropertyAccess::createPropertyAccessor(true)``.
332+
with an array for an invalid index would always return ``true``.
333+
To make it return ``false``, set its first argument to ``true`` e.g. ``PropertyAccess::createPropertyAccessor(true)``.
335334

336335
The same is possible for :method:`PropertyAccessor::setValue<Symfony\\Component\\PropertyAccess\\PropertyAccessor::setValue>`:
337336
Call the

0 commit comments

Comments
 (0)