Re: type hinting
| From: | Cristian Rodriguez | Date: | Sun, 06 Jan 2008 18:41:02 +0000 |
| Subject: | Re: type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34534@lists.php.net to get a copy of this message | ||
2008/1/4, Jani Taskinen <jani.taskinen@sci.fi>:
> As I'm +1 for OPTIONAL scalar-type hinting.
me too +1 as long as :
<?php
function foo(int $a) {}
foo('5');
?>
Raises an error, and is rejected because is not a valid integer, otherwise -1
--
http://www.kissofjudas.net/