vimeo /psalm
A PHP static analysis tool for finding errors and security vulnerabilities in PHP applications
★ 5,931⑂ 731👁 51⑃ 5,296● 8,377▤ 549
+1
日增长
5,931
stars
731
forks
51
watchers
5,296
prs
8,377
issues
549
releases
README
Psalm Psalm is a static analysis tool for finding errors in PHP applications. Join the official Psalm news channel and the Psalm community on Telegram and Discord! Installation To get started, check out the installation guide. Live Demo You can play around with Psalm on its website. Documentation Documentation is available on Psalm’s website, generated from the docs folder. Support Psalm development You can support Psalm development by requesting a support contract from Daniil Gentili, the only active maintainer of Psalm. Support contracts can cover full integration of Psalm into existing codebases, support for Psalm issues and development of additional Psalm features. See here » for info, pricing and contact information. Interested in contributing? Have a look at CONTRIBUTING.md. Who made this Built by Matt Brown (@muglug). Maintained by Daniil Gentili (@danog), Alies Lapatsin (@alies-dev) and Orklah (@orklah). Former maintainer: Bruce Weirdan (@weirdan). The engineering team at Vimeo have provided a lot encouragement, especially @nbeliard, @erunion and @nickyr.
Top issues
#8159False positive TypeDoesNotContainType with literal-string and class-string29 comments · 2022-06-24#6821Invalid argument type when using generic callables26 comments · 2021-11-04#5820closure parameter are analysed without the function context ( generics ) when used with userland functions.25 comments · 2021-05-23#9838Override Psalm's template type inference24 comments · 2023-05-30#7739Type inheritance not considered in templated values24 comments · 2022-02-28#7438using $this in pure function23 comments · 2022-01-19#3695@var MyTrait $mockForTrait causes UndefinedDocblockClass22 comments · 2020-06-26#6942intersection types and conditional types20 comments · 2021-11-18
Discussions
#13411Config: why plugin added by via `<plugin filename>` not load?1 comments · 2026-11-07#13062Psalm 70 comments · 2026-11-02#116747.0.0-beta150 comments · 2026-02-19#11637Why is this an invalid argument?1 comments · 2026-01-05#11551conditional throw1 comments · 2025-09-09#11546Support `@internal` enforcement for traits0 comments · 2025-08-29#11534Trying to understand the reasoning behind...1 comments · 2025-08-12#11522Why `empty` considered as non-strict?1 comments · 2025-07-25
Latest release
7.6.0 7.6.0 2026-11-15What's Changed Features Make allowStringToStandInForClass consistent across class-string usages by @orklah in https://github.com/vimeo/psalm/pull/13702 Add Codebase::addReportableFiles() to report issues in files Psalm doesn't analyze by @alies-dev in https://github.com/vimeo/psalm/pull/13725 Narrow array_filter() results with first-class callable callbacks by @kamil-tekiela in https://github.com/vimeo/psalm/pull/12524 Narrow a string to empty or non-empty from strlen() compared with 0 or 1 by @jirkace in https://github.com/vimeo/psalm/pull/12597 Report a float that loses its fraction as