note 116780 added to language.oop5.static
| From: | Ano | Date: | Thu, 26 Feb 2015 22:42:09 +0000 |
| Subject: | note 116780 added to language.oop5.static | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201817@lists.php.net to get a copy of this message | ||
The doc above says:
"A property declared as static cannot be accessed with an instantiated class object"
But it can, with a double-colon, as shown in the first example (unless I got something wrong).
----
Server IP: 72.52.91.14
Probable Submitter: 2a02:8423:3580:3e00:5635:30ff:fea8:d0b6
----
Manual Page -- http://php.net/manual/en/language.oop5.static.php
Edit -- https://master.php.net/note/edit/116780
Del: integrated -- https://master.php.net/note/delete/116780/integrated
Del: useless -- https://master.php.net/note/delete/116780/useless
Del: bad code -- https://master.php.net/note/delete/116780/bad+code
Del: spam -- https://master.php.net/note/delete/116780/spam
Del: non-english -- https://master.php.net/note/delete/116780/non-english
Del: in docs -- https://master.php.net/note/delete/116780/in+docs
Del: other reasons-- https://master.php.net/note/delete/116780
Reject -- https://master.php.net/note/reject/116780
Search -- https://master.php.net/manage/user-notes.php