Posted by Michael Fesser on 08/30/07 04:55
..oO(Fabio)
>This seems a really bad implementation of php.
>Php let you indicate the data type to be used and then considers it as a
>syntax error???
The manual is pretty clear about that:
| Type Hints can only be of the object and array (since PHP 5.1) type.
| Traditional type hinting with int and string isn't supported.
Or in other words - it works for complex types, but not for scalars.
Micha
[Back to original message]
|