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 supported18 Subscribers
Add a CodeTriage badge to psalm
Help out
- Issues
- Cannot use 'Sort' as as string if method accepts closure
- invalid `UnusedVariable` when the variable is used in a composite string.
- casting `array`/`list` to a `string` should result in literal `"Array"` instead of generic `string`
- reading property of non-object should result in `null` not `mixed`
- reading undefined property of an enum should result in `null` not `mixed`.
- psalm is unable to detect the the resulting type of a property fetch if the selector could refer to more than 1 property.
- Test file extends internal final class
- invalid `InvalidReturnStatement` when using `int` template
- weird `ArgumentTypeCoercion` error when using an parameter after narrowing its type.
- false-positive `InvalidReturnStatement`
- Docs
- PHP not yet supported