On Wed, 2016-03-30 at 04:16 +0100, Joe Watkins wrote: > > 2) The handling of multiple properties in the same declaration statement > is inconsistent. > > This feels consistent to me .. in other languages where the type is > required, it makes sense to assume the type is implied. > > In a language where the type is optional, public int $foo, $bar; feels > ambiguous to me.
We support $ php -r 'class C { private static $a, $b; } echo new ReflectionClass("C");' [...] - Static properties [2] { Property [ <default> private static $a ] Property [ <default> private static $b ] [...] I believe handling the type attribute like access attributes would be consistent. But well, unless we have typed variables etc. this is inconsistent anyways. Maybe we should actually discuss making PHP fully typed and making that consistent instead of adding one piece of typing step by step. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php