Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2b4b224

Browse filesBrowse files
committed
feature #24028 [Yaml] mark some classes as final (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [Yaml] mark some classes as final | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Making these classes final unlocks more scalar type hint possibilities on top of the changes proposed in #23262. Commits ------- 330c6bf [Yaml] mark some classes as final
2 parents b9fc357 + 330c6bf commit 2b4b224
Copy full SHA for 2b4b224

File tree

5 files changed

+10
-0
lines changed
Filter options

5 files changed

+10
-0
lines changed

‎UPGRADE-3.4.md

Copy file name to clipboardExpand all lines: UPGRADE-3.4.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ Validator
203203
Yaml
204204
----
205205

206+
* the `Dumper`, `Parser`, and `Yaml` classes are marked as final
207+
206208
* using the `!php/object:` tag is deprecated and won't be supported in 4.0. Use
207209
the `!php/object` tag (without the colon) instead.
208210

‎src/Symfony/Component/Yaml/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ CHANGELOG
44
3.4.0
55
-----
66

7+
* the `Dumper`, `Parser`, and `Yaml` classes are marked as final
8+
79
* Deprecated the `!php/object:` tag which will be replaced by the
810
`!php/object` tag (without the colon) in 4.0.
911

‎src/Symfony/Component/Yaml/Dumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Dumper.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Dumper dumps PHP variables to YAML strings.
1616
*
1717
* @author Fabien Potencier <fabien@symfony.com>
18+
*
19+
* @final since version 3.4
1820
*/
1921
class Dumper
2022
{

‎src/Symfony/Component/Yaml/Parser.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Parser.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Parser parses YAML strings to convert them to PHP arrays.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
21+
*
22+
* @final since version 3.4
2123
*/
2224
class Parser
2325
{

‎src/Symfony/Component/Yaml/Yaml.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Yaml.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Yaml offers convenience methods to load and dump YAML.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @final since version 3.4
2022
*/
2123
class Yaml
2224
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.