Thread context
4 posts in path
Root
@Girgias@phpc.social
Open
@Girgias@phpc.social
@loicfaugeron@phpc.social I have yet to understand why people are obsessed with strict_types when they use static analysis. And if you aren't, then adding types and using weak mode is better then enab
Ancestor 2
@loicfaugeron@phpc.social
Open
@loicfaugeron@phpc.social
@Girgias@phpc.social do you mean that if people are using static analysis, then they don't need strict_types; and if they aren't using static analysis, they also don't need strict_types?
Parent
@Girgias@phpc.social
Open
@Girgias@phpc.social
@loicfaugeron@phpc.social correct. PHP mostly* does sensible type coercions for scalar types in weak mode that are better than the forceful casts that will convert any random stuff (e.g. array to stri
• 🧑💻️ I'm a Lead / Senior backend developer • ⚧️ My pronouns are: he / his • 🐘🎼 I write PHP and Symfony code • 🐬🐘 I develop with MySQL and PostgreSQL databases • 🐧💻 I use Linux/Mac and the CLI • 🧱🦿 I like LEGO and Bionicle
phpc.social
• 🧑💻️ I'm a Lead / Senior backend developer • ⚧️ My pronouns are: he / his • 🐘🎼 I write PHP and Symfony code • 🐬🐘 I develop with MySQL and PostgreSQL databases • 🐧💻 I use Linux/Mac and the CLI • 🧱🦿 I like LEGO and Bionicle
phpc.social
@loicfaugeron@phpc.social
·
Feb 12, 2026