diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index 8caffc7a07f2..803a8780ce9a 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -120,10 +120,42 @@ Fatal error: Uncaught Error: Cannot access private const Foo::BAZ in … As of PHP 7.1.0 visibility modifiers are allowed for class constants. + + Class constant visibility variance check, as of PHP 8.3.0 + + +]]> + + &example.outputs.83; + + + + + + + As of PHP 8.3.0 visibility variance is checked more strictly. + Prior to this version, the visibility of a class constant could be different + from the visibility of the constant in the implemented interface. + + Fetch class constant syntax, as of PHP 8.3.0 -