psalm
https://github.com/vimeo/psalm
PHP
A static analysis tool for finding errors in PHP applications
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
PHP not yet supported17 Subscribers
Add a CodeTriage badge to psalm
Help out
- Issues
- Taint: json_encode() with JSON_HEX_TAG should remove html taint (and has_quotes with JSON_HEX_APOS|JSON_HEX_QUOT)
- Fix: false `InvalidReturnStatement` for `parent::` and `self::` calls returning `$this`
- [6.x] Report PHP 8.5 deprecated internal functions and methods
- [7.x] Fix: boolean-variable narrowing lost after an unrelated if
- [7.x] Fix: auto-fix hint hidden by default and missing purity issues
- Boolean-variable narrowing is lost after an unrelated if when the variable was reassigned from itself (`$x = $a ?? $x`)
- [6.x] Fix: files queued by plugins while registering stubs are scanned as stubs
- Unpacked argument is mapped onto every parameter from its offset, ignoring string keys (taint false positive)
- `@php-from` in extension stubs is not parsed, so those version gates do nothing
- PHP 8.4 `Dom\` namespace constants and unstubbed classes are unknown when Psalm runs on PHP < 8.4
- Docs
- PHP not yet supported