Elektrine lite

← Feed

@Girgias@phpc.social

Post #256954

2026-02-11 12:33 UTC

@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 enabling strict_types anyway. Especially that Rector for a long time, and maybe still, way of fixing this is to add casts which are worse than PHP's implicit coercions. (I.e. seeing a cast is way more of a red flag than not using strict_types)

Replies (1)

  • @loicfaugeron@phpc.social 2026-02-11 14:11

    @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?

    Open ##258049