3 ms·
> I desperately want a good code analysis tool for PHP: something that can look behind whether there's exactly one space before a '*' in a comment block and int
by larzang 6y ago
> I desperately want a good code analysis tool for PHP: something that can look behind whether there's exactly one space before a '*' in a comment block and into deeper things like, "hey, on this line over here you tried to call a function that doesn't exist in the class the variable is supposed to be referencing".
Then you want phpstan or psalm. They do actual type checking and static analysis rather than style linting, and do it quite well.
If you do want an alternative for linting, Slevomat Coding Standard adds a huge number of highly-configurable and useful extra rules to PHPCS. I'm a big fan.
- thaumaturgy 6y agoWow, phpstan and psalm are both brilliant, and this is the first time I've been introduced to them. Thank you.