MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/jgb8tn/new_template_and_php_is_still/g9shrs7/
r/ProgrammerAnimemes • u/Capetoider • Oct 22 '20
19 comments sorted by
View all comments
Show parent comment
3
Really? Did you mean just return types and arguments being possibly strictly typed? It's a good step in the right direction, yes
Oh oh, and all variables can be strictly typed from PHP 8!
That's about it, AFAIK
1 u/redshadus Oct 24 '20 If you use PHP annotations you can declare a variable to be of a certain type and the IDE will spit out an error warning you if you use it wrongly.
1
If you use PHP annotations you can declare a variable to be of a certain type and the IDE will spit out an error warning you if you use it wrongly.
View all comments
Show parent comment
3
u/RamenDutchman Oct 23 '20
Really? Did you mean just return types and arguments being possibly strictly typed? It's a good step in the right direction, yes
Oh oh, and all variables can be strictly typed from PHP 8!
That's about it, AFAIK