note 94542 rejected from language.oop5.properties by thiago
| From: | thiago@php.net | Date: | Wed, 11 Nov 2009 11:20:14 +0000 |
| Subject: | note 94542 rejected from language.oop5.properties by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162747@lists.php.net to get a copy of this message | ||
Note Submitter: knightmade at gmail dot com
----
class SimpleClass
{
......
public $var4 = self::myStaticMethod(); // <- this line is wrong.
......
}
the reason is :
This declaration may include an initialization, but this initialization must be a constant
value--that is, it must be able to be evaluated at compile time and must not depend on run-time
information in order to be evaluated.