Skip to content

Commit 2403038

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/var_exporter.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ While you never query ``$processor->hash`` value, heavy methods will never be
274274
triggered. But still, the ``$processor`` object exists and can be used in your
275275
code, passed to methods, functions, etc.
276276

277+
.. deprecated:: 6.4
278+
279+
The use of ``propertyName`` and ``propertyScope`` in the initializer function
280+
is deprecated since Symfony 6.4 and removed in Symfony 7.0.
281+
The initializer should now handle the entire object initialization at once.
282+
277283
Additionally and by adding two arguments to the initializer function, it is
278284
possible to initialize properties one-by-one::
279285

0 commit comments

Comments
 (0)