1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00
orklah 563032c5f2 List notation in callmap (#2693)
* improve multiple return types with list<> + Exception::getTrace details

* fix broken syntax

* seems like changing libxml_get_errors return type angered the CI God

* revert array_count_values
2020-01-27 09:13:15 -05:00
2020-01-14 01:24:27 -05:00
2019-06-16 09:04:56 -04:00
2020-01-27 09:13:15 -05:00
2019-06-08 19:59:23 -04:00
2019-12-02 00:11:45 -05:00
2020-01-23 14:33:07 -05:00
2019-06-16 09:04:56 -04:00
2019-06-05 10:43:51 -04:00
2019-12-04 15:18:00 -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.

Quickstart Guide

Install via Composer:

composer require --dev vimeo/psalm

Add a config:

./vendor/bin/psalm --init

Then run Psalm:

./vendor/bin/psalm

The config created above will show you all issues in your code, but will emit INFO issues (as opposed to ERROR) for certain common trivial code problems. If you want a more lenient config, you can specify the level with

./vendor/bin/psalm --init [source_dir] [level]

You can also learn how to suppress certain issues.

How Psalm Works

A basic rundown of Psalms internals can be found in docs/how_psalm_works.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%