5 ms·
> the type system it has is woeful Check out a thing I made: https://psalm.dev https://psalm.dev. It allows you to add more descriptive types in docblocks. >
by muglug 7y ago
> the type system it has is woeful
Check out a thing I made: https://psalm.dev https://psalm.dev. It allows you to add more descriptive types in docblocks.
> no typing of local vars
Why do you want explicit types for local vars?
- 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.