Skip to content

Commit 63ee2e4

Browse files
Add deprecation notice for propertyName and propertyScope in initializer (Symfony 6.4)
1 parent a8cb450 commit 63ee2e4

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)