Skip to content

Commit 5a8fc37

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Improve the formatting of the lists of special characters
2 parents 7531034 + 86d4623 commit 5a8fc37

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

components/cache/cache_items.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Cache Item Keys and Values
1212
The **key** of a cache item is a plain string which acts as its
1313
identifier, so it must be unique for each cache pool. You can freely choose the
1414
keys, but they should only contain letters (A-Z, a-z), numbers (0-9) and the
15-
``_`` and ``.`` symbols. Other common symbols (such as ``{``, ``}``, ``(``,
16-
``)``, ``/``, ``\``, ``@`` and ``:``) are reserved by the PSR-6 standard for future
17-
uses.
15+
``_`` and ``.`` symbols. Other common symbols (such as ``{ } ( ) / \ @ :``) are
16+
reserved by the PSR-6 standard for future uses.
1817

1918
The **value** of a cache item can be any data represented by a type which is
2019
serializable by PHP, such as basic types (string, integer, float, boolean, null),

doctrine.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The database connection information is stored as an environment variable called
6161
.. caution::
6262

6363
If the username, password, host or database name contain any character considered
64-
special in a URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``, ``%``),
64+
special in a URI (such as ``: / ? # [ ] @ ! $ & ' ( ) * + , ; =``),
6565
you must encode them. See `RFC 3986`_ for the full list of reserved characters.
6666
You can use the :phpfunction:`urlencode` function to encode them or
6767
the :ref:`urlencode environment variable processor <urlencode_environment_variable_processor>`.

mailer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
6464
.. caution::
6565

6666
If the username, password or host contain any character considered special in a
67-
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
67+
URI (such as ``: / ? # [ ] @ ! $ & ' ( ) * + , ; =``), you must
6868
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
6969
:phpfunction:`urlencode` function to encode them.
7070

notifier.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SMS Channel
4646
.. caution::
4747

4848
If any of the DSN values contains any character considered special in a
49-
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
49+
URI (such as ``: / ? # [ ] @ ! $ & ' ( ) * + , ; =``), you must
5050
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
5151
:phpfunction:`urlencode` function to encode them.
5252

@@ -223,7 +223,7 @@ Chat Channel
223223
.. caution::
224224

225225
If any of the DSN values contains any character considered special in a
226-
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
226+
URI (such as ``: / ? # [ ] @ ! $ & ' ( ) * + , ; =``), you must
227227
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
228228
:phpfunction:`urlencode` function to encode them.
229229

@@ -434,7 +434,7 @@ Push Channel
434434
.. caution::
435435

436436
If any of the DSN values contains any character considered special in a
437-
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
437+
URI (such as ``: / ? # [ ] @ ! $ & ' ( ) * + , ; =``), you must
438438
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
439439
:phpfunction:`urlencode` function to encode them.
440440

reference/formats/yaml.rst

+9-11
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ must be doubled to escape it:
3434
3535
'A single quote '' inside a single-quoted string'
3636
37-
Strings containing any of the following characters must be quoted. Although you
38-
can use double quotes, for these characters it is more convenient to use single
39-
quotes, which avoids having to escape any backslash ``\``:
40-
41-
* ``:``, ``{``, ``}``, ``[``, ``]``, ``,``, ``&``, ``*``, ``#``, ``?``, ``|``,
42-
``-``, ``<``, ``>``, ``=``, ``!``, ``%``, ``@``, `````
37+
Strings containing any of the following characters must be quoted:
38+
``: { } [ ] , & * # ? | - < > = ! % @`` Although you can use double quotes, for
39+
these characters it is more convenient to use single quotes, which avoids having
40+
to escape any backslash ``\``.
4341

4442
The double-quoted style provides a way to express arbitrary strings, by
4543
using ``\`` to escape characters and sequences. For instance, it is very useful
@@ -52,11 +50,11 @@ when you need to embed a ``\n`` or a Unicode character in a string.
5250
If the string contains any of the following control characters, it must be
5351
escaped with double quotes:
5452

55-
* ``\0``, ``\x01``, ``\x02``, ``\x03``, ``\x04``, ``\x05``, ``\x06``, ``\a``,
56-
``\b``, ``\t``, ``\n``, ``\v``, ``\f``, ``\r``, ``\x0e``, ``\x0f``, ``\x10``,
57-
``\x11``, ``\x12``, ``\x13``, ``\x14``, ``\x15``, ``\x16``, ``\x17``, ``\x18``,
58-
``\x19``, ``\x1a``, ``\e``, ``\x1c``, ``\x1d``, ``\x1e``, ``\x1f``, ``\N``,
59-
``\_``, ``\L``, ``\P``
53+
``\0``, ``\x01``, ``\x02``, ``\x03``, ``\x04``, ``\x05``, ``\x06``, ``\a``,
54+
``\b``, ``\t``, ``\n``, ``\v``, ``\f``, ``\r``, ``\x0e``, ``\x0f``, ``\x10``,
55+
``\x11``, ``\x12``, ``\x13``, ``\x14``, ``\x15``, ``\x16``, ``\x17``, ``\x18``,
56+
``\x19``, ``\x1a``, ``\e``, ``\x1c``, ``\x1d``, ``\x1e``, ``\x1f``, ``\N``,
57+
``\_``, ``\L``, ``\P``
6058

6159
Finally, there are other cases when the strings must be quoted, no matter if
6260
you're using single or double quotes:

0 commit comments

Comments
 (0)