8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4799d5 commit d56acafCopy full SHA for d56acaf
_images/components/var_dumper/10-uninitialized.png
14.4 KB
components/var_dumper.rst
@@ -461,6 +461,24 @@ then its dump representation::
461
462
.. image:: /_images/components/var_dumper/09-cut.png
463
464
+.. code-block:: php
465
+
466
+ class Foo
467
+ {
468
+ // $foo is uninitialized, which is different from being null
469
+ private int|float $foo;
470
+ public ?string $baz = null;
471
+ }
472
473
+ $var = new Foo();
474
+ dump($var);
475
476
+.. image:: /_images/components/var_dumper/10-uninitialized.png
477
478
+.. versionadded:: 6.4
479
480
+ Displaying uninitialized variables information was introduced in Symfony 6.4.
481
482
.. _var-dumper-advanced:
483
484
Advanced Usage
0 commit comments