3 ms·
> Why do you want explicit types for local vars? I suppose mainly because of deficits in the static analysis tooling that exists (or at least, that I used), as
by GordonS 7y ago
> Why do you want explicit types for local vars?
I suppose mainly because of deficits in the static analysis tooling that exists (or at least, that I used), as they usually cannot infer types correctly. Psalm looks pretty nice though, so I'll check that out next time I'm working in this PHP codebase :)
Even with exellent tooling though, there are still occasions where I like to use an explicit type.