Static code analysis #1451
Labels
scope: dev-infrastructure
Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc.
Projects
Milestone
During the past two years, I have spent most of my time in TypeScript and going back to PHP feels... not very pleasant to be honest. We can't do much about the language but we could modernize our codebase, for example, bump required version of PHP and use newer language features (#1408), or introduce more static checking.
We already have an issue about PHPStan – #1210 – however, I recently read this amazing article which discusses these tools:
It sparked my interest and I researched this area briefly. Here are the notes:
@psalm-param Closure(int):bool
or@psalm-param 'Yes'|'No'
which is awesome. (I believe that the tool needs to introduce some sort of its syntax because PHP & PHPDoc are not enough to describe the types properly.)I plan to experiment with Psalm soon.
The text was updated successfully, but these errors were encountered: