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

Make CI useful again and add type declarations #663

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GKFX
Copy link
Contributor

@GKFX GKFX commented Oct 5, 2020

This pull request:

  • Adds type declarations to bring down the PHPStan error count
  • Makes the CI not dependant on a PHPStan pass so that it can run through to the unit tests
  • Adds alcaeus/mongo-php-adapter so that composer install can run without ext-mongo. This could be removed again if doctrine/mongodb-odm is upgraded, as in the elchris fork.
  • Disables the Propel tests as all the Propel code seems to be missing something in the FOS\OAuthServerBundle\Propel\om namespace
  • Updates the PHPStan configuration including the addition of phpstan-symfony.

The first commit is unfortunately rather large. A lot of it comes from running sed over Tests/ to add return type declarations, which inevitably produced a lot of changes.

This commit:
  - Adds type declarations to bring down the PHPStan error count
  - Makes the CI not dependant on a PHPStan pass so that it can run
    through to the unit tests
  - Upgrades the dev dependanies so that they can install on a modern
    system (i.e. without ext-mongo)
  - Disables the Propel tests
  - Updates the PHPStan configuration file
@deguif
Copy link
Collaborator

deguif commented Oct 5, 2020

@GKFX really nice, but could you split this PR in to smaller ones, please.

GKFX added a commit to GKFX/FOSOAuthServerBundle that referenced this pull request Oct 6, 2020
GKFX added a commit to GKFX/FOSOAuthServerBundle that referenced this pull request Oct 6, 2020
GKFX added a commit to GKFX/FOSOAuthServerBundle that referenced this pull request Oct 8, 2020
This commit is dependant on FriendsOfSymfony#663 or FriendsOfSymfony#666 to upgrade the PHPUnit
dependency to ^8. It brings the tests to a passing state by removing all
deprecation warnings that are within this project's control.
GKFX added a commit to GKFX/FOSOAuthServerBundle that referenced this pull request Oct 8, 2020
This commit is dependant on FriendsOfSymfony#663 or FriendsOfSymfony#666 to upgrade the PHPUnit
dependency to ^8. It brings the tests to a passing state by removing all
deprecation warnings that are within this project's control.
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 this pull request may close these issues.

None yet

2 participants