Skip to content

Commit

Permalink
minor symfony#12880 Fix invalid yaml (jschaedl)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.3 branch.

Discussion
----------

Fix invalid yaml

Because `deprecated: 'The "%alias_id%" alias is deprecated. Don\'t use it anymore.'` is not valid Yaml, it leads to this error:

[OK] All 1 YAML files contain valid syntax.
>> Unexpected characters near "t use it anymore.

The yaml specification says:

> All non-printable characters must be escaped. YAML escape sequences use the “\” notation common to most modern computer languages. Each escape sequence must be parsed into the appropriate Unicode character. The original escape sequence is a presentation detail and must not be used to convey content information.

> Note that escape sequences are only interpreted in double-quoted scalars. In all other scalar styles, the “\” character has no special meaning and non-printable characters are not available.

So I think removing the `'` will help users who copy the configuration from the documentation.

Commits
-------

84151dc Fix invalid yaml
  • Loading branch information
javiereguiluz committed Jan 2, 2020
2 parents 3b1dd56 + 84151dc commit 85ebd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_container/alias_private.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ or you decided not to maintain it anymore), you can deprecate its definition:
deprecated: true
# ...but you can also define a custom deprecation message
deprecated: 'The "%alias_id%" alias is deprecated. Don\'t use it anymore.'
deprecated: 'The "%alias_id%" alias is deprecated. Do not use it anymore.'
.. code-block:: xml
Expand Down

0 comments on commit 85ebd3e

Please sign in to comment.