-
Notifications
You must be signed in to change notification settings - Fork 889
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
Fixing issues found by PHPStan & Integrating PHPStan #1007
Conversation
BTW that it found this problem is pretty cool I think :) |
c9809fe
to
6d9df88
Compare
I updated the PR with newest PHPStan version 0.6. |
@ondrejmirtes thanks and cool tool. I've read the article, I want to play around with it. |
@ondrejmirtes hey mate really cool tool! happy to integrate! |
@robmorgan I'm happy to hear that! :) If you'd need any help integrating PHPStan on some other project, let me know. |
Would it also be feasible to incorporate php-cs-fixer? By adding suitable entries in composer.json in the For example: my main work has (amongst others) ... "run-sa": "vendor/bin/phpstan analyse --ansi --no-progress -c phpstan.neon -l 4 classes controllers lib",
"run-fixer": "vendor/bin/php-cs-fixer fix",
"run-tests": "vendor/bin/phpunit --exclude-group requires-db" So all our devs can easily run |
I ran PHPStan on your codebase and it found these issues. Feel free to comment on the fixes. I think it'd also to be beneficial to integrate PHPStan into your Travis build so you can prevent these errors in the future.
You can find out more about PHPStan on Medium.com.