Skip to content

Commit 7f746bd

Browse files
minor symfony#24701 Config: mark builder property deprecated (bburnichon)
This PR was squashed before being merged into the 3.4 branch (closes symfony#24701). Discussion ---------- Config: mark builder property deprecated | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | `builder` protected property is not used at all in class. Mark as deprecated to enable removing asap. This is to avoid keeping dead code up to symfony `5.0` and still having this dead code in the `4.4` LTS version Commits ------- 206fb74 Config: mark builder property deprecated
2 parents 002b3f2 + 206fb74 commit 7f746bd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

UPGRADE-3.4.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
UPGRADE FROM 3.3 to 3.4
22
=======================
33

4+
Config
5+
------
6+
7+
* Using protected builder property of TreeBuilder is deprecated and property will be removed in 4.0.
8+
49
DependencyInjection
510
-------------------
611

src/Symfony/Component/Config/Definition/Builder/TreeBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class TreeBuilder implements NodeParentInterface
2222
{
2323
protected $tree;
2424
protected $root;
25+
26+
/**
27+
* @deprecated since 3.4. To be removed in 4.0
28+
*/
2529
protected $builder;
2630

2731
/**

0 commit comments

Comments
 (0)