mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Grégoire Paris
bc91de015e
Mark throwable methods as pure (#3171)
* Write stub as valid PHP This works probably because it is not parsed by PHP but by something more tolerant, but let's make it more valid (the final access type in the signature is not valid) PHP anyway, that will raise fewer eyebrows. * Document actual return type Seeca006e54e3/Zend/zend_exceptions.stub.php (L8)
* Mark all methods from Throwable as mutation free Exception is the only possible class implementation of Throwable, and all of its methods except __toString() are final. Seeca006e54e3/Zend/zend_exceptions.stub.php (L3-L25)
Closes #3170
@psalm-trace is now a specific low-level issue, because plain debug print breaks structured output (after #3080) (#3106)
…
Psalm
Psalm is a static analysis tool for finding errors in PHP applications, built on top of PHP Parser.
It's able to find a large number of issues, but it can also be configured to only care about a small subset of those.
Try a live demo, or install it in your project by following the Quickstart Guide below.
Psalm documentation
Documentation is available on Psalm’s website, generated from the docs folder.
To get started, check out the installation guide
Interested in contributing?
Have a look at CONTRIBUTING.md.
Acknowledgements
The engineering team @vimeo for encouragement and patience, especially @nbeliard, @erunion and @nickyr.
Languages
PHP
100%