We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 424c4ef commit d1cb722Copy full SHA for d1cb722
validation.rst
@@ -613,10 +613,9 @@ class to have at least 3 characters.
613
614
.. caution::
615
616
- With PHP 7.4, typed properties were introduced. If a property is accessed
617
- before a value is assigned (explicitly or as a default value), PHP will
618
- throw an exception. To avoid that, the Validator will use ``null`` as the
619
- properties value if it's uninitialized.
+ The validator will use a value ``null`` if a typed property is uninitialized.
+ This can cause unexpected behavior if the property holds a value when initialized.
+ In order to avoid this, make sure all properties are initialized before validating them.
620
621
.. index::
622
single: Validation; Getter constraints
0 commit comments