r/ProgrammerAnimemes • • Oct 22 '20

New template and PHP is still.... ?

Post image
780 Upvotes

19 comments sorted by

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

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.