Type hints with scalar types
Posted by PHPVote 9 years ago
In the documentation we can read and I experience the type hints that didn't take care of scalar types. Could be very interesting to add this to enforce what we pass to functions.
Reference:
http://www.php.net/manual/en/language.oop5.typehinting.php