Statically analysing your PHP code using PHPStan

1 · Amit Merchant · June 28, 2023, 5:37 a.m.
The great thing about statically typed languages, like Java, C#, Go, Swift, etc. is that they can be analysed by the compiler itself. This means, if you’re using a statically typed language, you can catch a lot of errors at compile-time itself. TypeScript is a great example of this. It’s a statically typed language that compiles down to JavaScript. And it can catch a lot of errors at compile-time itself. This is not the case with dynamically typed languages like PHP, Python, etc. where you can o...