Описание тега psalm-php
Psalm is a static analysis tool that’s designed to improve large PHP codebases by identifying both obvious and hard-to-spot bugs.
In addition to more common singular and union types it also supports generics, shape arrays, enums and intersection types.
Psalm comes with a fixer that allows you to improve your code automatically, too.
You should use Psalm if you want to
- prevent errors in a big refactor
- maintain a consistent level of quality across a large team
- guarantee that there won’t be any type-related runtime errors
Useful links: