1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
Go to file
Grégoire Paris b47306ad3b
Account for PDOException (#3175)
Probably for legacy reasons, PDOException::getCode() can return string (it's an
SQLSTATE code). Note that if you instantiate it yourself, you will get
an integer though.

I changed the signature of the Exception stub accordingly, and then
there were errors about incompatible signatures, so I had to change the
signature of Throwable too, which makes sense since a Throwable could be
a PDOException. The signature at
https://www.php.net/manual/en/throwable.getcode.php seems plain wrong,
and that same page of the docs warns about PDOException. Not sure what
are the plans for future versions of PHP.
2020-04-18 10:39:23 -04:00
.circleci Added coverage upload to coveralls.io (#3078) 2020-04-05 22:38:30 -04:00
.github/workflows Run on pull_request too 2020-02-24 11:31:20 -05:00
assets/psalm-phar Make config generation smarter 2020-02-17 22:05:58 -05:00
bin Run every project as separate step (#3076) 2020-04-05 20:25:50 -04:00
build/phpunit Add circleci config file 2019-06-16 09:04:56 -04:00
docs Update MixedArgumentTypeCoercion.md (#3129) 2020-04-12 19:52:50 -04:00
examples Improve file invalidation when using --diff mode 2020-04-02 17:18:04 -04:00
src Account for PDOException (#3175) 2020-04-18 10:39:23 -04:00
tests Account for PDOException (#3175) 2020-04-18 10:39:23 -04:00
vendor-bin/box Bump box version 2019-06-08 19:59:23 -04:00
.appveyor.yml Suppress choco install progress (#3100) 2020-04-08 09:23:24 -04:00
.editorconfig
.gitattributes
.gitignore Fix: Remove unused friendsofphp/php-cs-fixer (#2603) 2020-01-12 10:52:33 -05:00
.scrutinizer.yml
.travis.yml Use stable composer on Appveyor (#3097) 2020-04-08 09:04:36 -04:00
box.json.dist Fix reference to psalm_plugin in box.json.dist 2019-06-07 06:52:07 -04:00
CODE_OF_CONDUCT.md
composer.json Added coverage upload to coveralls.io (#3078) 2020-04-05 22:38:30 -04:00
config.xsd @psalm-trace is now a specific low-level issue, because plain debug print breaks structured output (after #3080) (#3106) 2020-04-08 21:03:05 -04:00
CONTRIBUTING.md Update with link 2020-02-24 11:39:20 -05:00
infection.json.dist Add circleci config file 2019-06-16 09:04:56 -04:00
keys.asc.gpg
LICENSE
phpcs.xml Refactor template calculation out from Psalm\Type\Union 2019-11-03 21:27:40 -05:00
phpunit.xml.dist Support using paratest for local development 2020-02-20 22:42:16 -05:00
psalm Move Psalm execution code into PHP file that Psalm can analyse 2017-12-29 17:02:56 -05:00
psalm-language-server
psalm-plugin Plugin loading (#855) 2018-11-10 23:23:36 -05:00
psalm-refactor Change psalm-refactor perms 2019-06-05 10:43:51 -04:00
psalm.xml.dist Break out SimpleNegatedAssertionReconciler 2020-04-17 09:28:42 -04:00
PsalmLogo.png
psalter
README.md Shortened the readme 2020-02-24 11:43:32 -05:00
scoper.inc.php Fix #2879 - rename stubs to prevent issues in PHPStorm 2020-03-01 17:28:51 -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.