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
- multiple issues related to array destructuring.
- Incorrect type inferred for array_is_list & array_combine
- Support for `<<` in constant expressions.
- psalm fails to resolve deeply nested templates?
- iterating over a `FilesystemIterator` cannot result in `null`
- [bug] asserting `Foo<T>|T` is `Foo` should result in `Foo<T>|Foo` not `Foo<T>`
- "private function __construct()" e.g. in singleton must be pure by default
- Global variables should be impure like static variables
- UndefinedThisPropertyAssignment is only produced if property name can be inferred, even in sealed class
- Combination of nullable objects, nullable method returns and ternary operator gets types wrong
- Docs
- PHP not yet supported