Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Psalm support as an alternative or addition to PHPStan #399

Open
dantleech opened this issue Sep 15, 2020 · 1 comment
Open

Add Psalm support as an alternative or addition to PHPStan #399

dantleech opened this issue Sep 15, 2020 · 1 comment

Comments

@dantleech
Copy link
Contributor

dantleech commented Sep 15, 2020

Psalm is an ever more popular alternative to PHPStan, and is developed full-time at Vimeo.

Features in addition to PHPStan:

  • Supports annotating pure functions (i.e. disallow side-effects)
  • Finding unused code
  • Support for fixing some code automatically.
  • ... add more here

Major libraries have are using Psalm-prefixed annotations, including PHPUnit,

It would be nice to have an option to enable it in addition to or as a replacement to PHPStan in the harness.

@tkotosz
Copy link

tkotosz commented Sep 28, 2020

@dantleech what do you think about having both by default? (I don't see why not have both static analyser at the same time, unless they can collide somehow, but I think psalm uses psalm-specific annotations so it should be fine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants