Skip to content

Commit 16110c0

Browse files
committed
minor #20661 [VarExporter] Add deprecation notice for propertyName and propertyScope in initiali… (SherinBloemendaal)
This PR was merged into the 6.4 branch. Discussion ---------- [VarExporter] Add deprecation notice for propertyName and propertyScope in initiali… Related to * symfony/symfony#59790 * #20660 Commits ------- 63ee2e4 Add deprecation notice for propertyName and propertyScope in initializer (Symfony 6.4)
2 parents a8cb450 + 63ee2e4 commit 16110c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/var_exporter.rst

+6
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ possible to initialize properties one-by-one::
285285
// Then you can add more logic for the other properties
286286
});
287287

288+
.. deprecated:: 6.4
289+
290+
The use of ``propertyName`` and ``propertyScope`` in the initializer function
291+
is deprecated since Symfony 6.4 and will be removed in Symfony 7.0.
292+
The initializer should now handle the entire object initialization at once.
293+
288294
Ghost objects unfortunately can't work with abstract classes or internal PHP
289295
classes. Nevertheless, the VarExporter component covers this need with the help
290296
of :ref:`Virtual Proxies <var-exporter_virtual-proxies>`.

0 commit comments

Comments
 (0)