Re: [RFC] Deprecate properties using var

From: Date: Fri, 13 Feb 2015 07:51:22 +0000
Subject: Re: [RFC] Deprecate properties using var
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-82585@lists.php.net to get a copy of this message
Hi! > 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 How the life of the PHP user would be improved by this? Except for making more code break, I'm not sure how it's helpful, could you explain? > 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. "var" is the same as "public", public is proper visibility. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#82585) next »