php-scalar
php-scalar copied to clipboard
This is what I need from PHP
Something simple and very important for the future of the PHP language. This feature is necessary for years. You should make noise in the RFC. good job!.
+1 indeed, scalar type hinting is missing in PHP for many years!
A pity ... simple things like this are forcing developers to choose x other languages.
I've reviewed the RFC that has been proposed 2 years ago, I don't know why Zend PHP team just don't choose any simple approach and want to provide a type hinting with type conversion.. the type conversion should be specified explicitly from the caller, not the callee.
Completely agree with you.