3 ms·
Right now, PHP is only missing typed local variables. Class fields are typed, function arguments are typed, function returns are typed. And local variables can
by Angius 5y ago
Right now, PHP is only missing typed local variables. Class fields are typed, function arguments are typed, function returns are typed. And local variables can be typed for static analysis purposes with `/* @var $str string */` annotation.
I'd add generics to that list, but Go doesn't have them either, so not really a point for discussion.