|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-27 09:09 UTC] derick@php.net
[2004-09-27 16:38 UTC] nlopess@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 03:00:01 2026 UTC |
Description: ------------ Tried using the final keyword on a class variable per the docs Final Keyword PHP 5 introduces the final keyword, which prevents child classes from overriding a method or variable by prefixing the definition with final. On windows system running 5.0.2 also on Linux running 5.0.1 <?php class Foo { final $FooVersion; } ?> Returns: Cannot declare property Foo::$FooVersion final, the final modifier is allowed only for methods Is this a bug or are the docs wrong?