Once every blue moon, I dive into Github repositories to check for something useful for my everyday routines.
This time, I stumbled upon Psalm from Vimeo.
Psalm is designed to understand that complexity, allowing it to quickly find common programmer errors like null references and misspelled variable names.
vimeo Psalm documentation
I’ve been using phpstan for basic code static analysis for a while. I was running it with various rule levels, depending on the complexity of the codebase.
So far, benchmarking an output from both varies on the same codebase. Psalm managed to find more inconsistencies in the code - looks like it’s worth giving a shot.