[RFC] Deprecate properties using var

From: Date: Thu, 12 Feb 2015 11:51:00 +0000
Subject: [RFC] Deprecate properties using var
Groups: php.internals 
Request: Send a blank email to internals+get-82525@lists.php.net to get a copy of this message
Hi all Before I create an RFC, I just want to get some feedback on a proposal, to deprecated the use of "var" when declaring properties on a class. This was previously deprecated in PHP 5.0.0 and the deprecation notice was removed in PHP 5.1.3. My proposal is to deprecate the use of var on properties in PHP 7, and then remove support for it in PHP 8. This compliments the [0] "Remove PHP 4 Constructors" RFC, as it is old PHP 4 behaviour, and according to the docs is only "supported for compatibility reasons", and personally I think users should be encourage to use proper visibility when defining properties. [0] https://wiki.php.net/rfc/remove_php4_constructors Regards Pierre du Plessis

« previous php.internals (#82525) next »