-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[master] PHPStan integration - levels 0 + 1 #6535
Conversation
|
658bb63
to
afe5e36
Compare
The scrutinizer changes are unrelated, so this is good to go. |
- if [[ $DB == "mysql" || $DB == "mariadb" ]]; then mysql -e "CREATE SCHEMA doctrine_tests; GRANT ALL PRIVILEGES ON doctrine_tests.* to travis@'%'"; fi; | ||
|
||
script: | ||
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 1 -c phpstan.neon lib; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we eventually also analyse the tests dir?
@Ocramius Ok, I'll see what could be done there, it won't work out-of-box though...
|
Damn, the tests are in a really bad shape, it'll be massive donkey work to improve them and fix them to get to level 1 (or 0 at least). It's over 150 issues already for level 0, over 300 for level 1. |
@Majkl578 then let's skip it for now. |
@Ocramius Can we merge this then? Or anything else? |
@Majkl578 🚢 thanks! |
Based on #6440, rebased & moved from composer.json to .travis.yml (to be installed only during CI builds). Fixed
lib/
for levels 0 & 1.I don't like the changes for level 1 though. Some of the changes shouldn't be even needed - PHPStan limitation reported in phpstan/phpstan#349.