diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index 65259835a1..951ac17782 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -1,5 +1,5 @@ - + Class Constants @@ -10,6 +10,10 @@ cannot be accessed from an instance of the object (using $object::constant). + + The value must be a constant expression, not (for example) a variable, a + class member, result of a mathematical operation or a function call. + Defining and using a constant