> 2) The handling of multiple properties in the same declaration statement is 
> inconsistent.
>
>         public int $bar, string $qux; // this works
>
>         public int $bar, $qux; //this emits error: Untyped property A::$qux 
> must not be mixed with typed properties
>
> It's better to allow type only before first property in the list and apply 
> them to all of them (like C, Java and others).
> Is this just an implementation issue?

I'm actually glad this is prevented because it's confusing. Is `$qux`
typed or untyped?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to