mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Values must be static expressions (bug #34634)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@198353 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0ddcc7aa12
commit
1f73c8cad8
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<sect1 id="language.oop5.constants">
|
||||
<title>Class Constants</title>
|
||||
<para>
|
||||
|
@ -10,6 +10,10 @@
|
|||
cannot be accessed from an instance of the object (using
|
||||
<literal>$object::constant</literal>).
|
||||
</para>
|
||||
<para>
|
||||
The value must be a constant expression, not (for example) a variable, a
|
||||
class member, result of a mathematical operation or a function call.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>Defining and using a constant</title>
|
||||
|
|
Loading…
Reference in a new issue