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

Static analysis #909

Open
szepeviktor opened this issue Oct 16, 2019 · 2 comments · May be fixed by #915
Open

Static analysis #909

szepeviktor opened this issue Oct 16, 2019 · 2 comments · May be fixed by #915

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Oct 16, 2019

composer require --dev phpstan/phpstan:^0.9.0
vendor/bin/phpstan analyze --level=0 -c phpstan.neon src/

then raise Level one by one

phpstan.neon

parameters:
    level: max
    ignoreErrors:
        # Uses func_get_args()
        - '#^Method Robo\\Tasks::task\(\) invoked with [12345] parameters?, 0 required\.$#'

Thank you for considering!
See my recent PR-s.

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Nov 4, 2019

@greg-1-anderson The recent PRs was not made by me alone but powered by @phpstan.
Please consider using it.

@greg-1-anderson
Copy link
Member

Could you make a PR? I've been pretty busy lately, but when I saw your PRs I did spend a couple of minutes where I tried adding phpstan as a dev dependency, and calling it from composer test. I think I had some minor problem but I don't remember now what it was.

@szepeviktor szepeviktor linked a pull request Nov 4, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants