10000 minor #13325 [Yaml] removed deprecation notices on internal constant … · symfony/symfony@e52754f · GitHub
[go: up one dir, main page]

Skip to content

Commit e52754f

Browse files
committed
minor #13325 [Yaml] removed deprecation notices on internal constant (fabpot)
This PR was merged into the 2.7 branch. Discussion ---------- [Yaml] removed deprecation notices on internal constant | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | antonioribeiro/tracker#56, #13306 | License | MIT | Doc PR | n/a Reverting the deprecated notices on `Unescaper::ENCODING` for two reasons: * The constant is only used internally and nobody ever used it anyway; * The deprecation notice is ALWAYS triggered when using the YAML component. Commits ------- faeed58 [Yaml] removed deprecation notices on internal constant
2 parents 5c5a99e + faeed58 commit e52754f

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/Symfony/Component/Yaml/Deprecated/Unescaper.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Symfony/Component/Yaml/Unescaper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Yaml;
1313

14-
use Symfony\Component\Yaml\Deprecated\Unescaper as Deprecated;
15-
1614
/**
1715
* Unescaper encapsulates unescaping rules for single and double-quoted
1816
* YAML strings.
@@ -26,8 +24,9 @@ class Unescaper
2624
* must be converted to that encoding.
2725
*
2826
* @deprecated since version 2.5, to be removed in 3.0
27+
* @internal
2928
*/
30-
const ENCODING = Deprecated::ENCODING;
29+
const ENCODING = 'UTF-8';
3130

3231
/**
3332
* Regex fragment that matches an escaped character in a double quoted string.

0 commit comments

Comments
 (0)
0