[PR][php-src][#1044][master] - Scalar type hints (version 0.1)
| From: | noreply@php.net | Date: | Thu, 26 Feb 2015 09:25:46 +0000 |
| Subject: | [PR][php-src][#1044][master] - Scalar type hints (version 0.1) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2493@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1044
Pull Request Description:
This is a variation of version 0.1 Andrea's proposal
(https://wiki.php.net/rfc/scalar_type_hints)
- type hints work according to standard "zend parsing paramers" rules (reusing code from
ZPP)
- It's still possible to declare class with names "int", "float", etc, but
they can't be used in type hinting anymore.
- implemented support for return types
- Type checking functions are optimized for speed and size