1
0
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

See ca006e54e3/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.
See ca006e54e3/Zend/zend_exceptions.stub.php (L3-L25)

Closes #3170
2020-04-17 22:08:26 -04:00
2020-02-24 11:31:20 -05:00
2019-06-16 09:04:56 -04:00
2019-06-08 19:59:23 -04:00
2019-03-17 13:30:33 -04:00
2017-12-31 16:53:56 -05:00
2020-02-24 11:39:20 -05:00
2019-06-16 09:04:56 -04:00
2018-12-14 11:20:31 -05:00
2018-11-10 23:23:36 -05:00
2019-06-05 10:43:51 -04:00
2017-01-16 17:24:26 -05:00
2020-02-24 11:43:32 -05:00

Psalm

Packagist Packagist Travis CI Coverage Status Psalm coverage

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 Psalms 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.

Description
No description provided
Readme MIT 108 MiB
Languages
PHP 100%