What was wrong with: function x(int $y, string $z) { // strict function x((int) $y, (string) $z) { // casting
This was the best suggestion I've seen that covers the requirements of both camps, and is still very clear how data is going to be handled. Authors who want their APIs to adhered to strictly can do that, authors who want to accept anything and have it end up as their desired type can do that too. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php