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 support for PHP 8 #41

Merged
merged 19 commits into from
Dec 7, 2020
Merged

Add support for PHP 8 #41

merged 19 commits into from
Dec 7, 2020

Conversation

vhenzl
Copy link
Contributor

@vhenzl vhenzl commented Dec 6, 2020

Resolves #40.

  • Minimal PHP version increased to 7.1. (So that supported versions are same as in webonyx/graphql-php. Going up to 7.2 would make things easier regarding PHPUnit.)
  • Installation on PHP 8 allowed.
  • composer check-platform-reqs added to build steps
  • PHPUnit bumped to ^7.5|^8.5 to support PHP 7.1-8.0
  • webonyx/graphql-php updated to the current version 14
  • --prefer-source used for composer update as tests/StarWarsData.php is no longer part of webonyx/graphql-php package. Alternative options would be to create a local copy of the file in this repository or download it from webonyx/graphql-php repo with wget in before_install.
  • The current version of php-cs-fixer (2.16) used, however, it doesn't allow installation on PHP 8 yet (see PHP 8.0 support PHP-CS-Fixer/PHP-CS-Fixer#4702).
  • PHPUnit option convertDeprecationsToExceptions disabled to deal with deprecated GraphQL::execute() (related to Correct use without deprecated GraphQL::execute()? #39).

All looks good apart from maybe the most important thing - Travis CI doesn't support PHP 8 yet. PHP 8.0 is available under nightly version but contains an ancient version (PHP 8.0.0-dev (cli) (built: Jan 7 2020 22:28:03) ( ZTS )) so it can't be trusted.

How do you want me to proceed? Should we wait for Travis CI? Or maybe migrate to Github Actions?

@garak
Copy link

garak commented Dec 6, 2020

All looks good apart from maybe the most important thing - Travis CI doesn't support PHP 8 yet. PHP 8.0 is available under nightly version but contains an ancient version (PHP 8.0.0-dev (cli) (built: Jan 7 2020 22:28:03) ( ZTS )) so it can't be trusted.

Try with 8.0snapshot, it should contain a recent version

@vhenzl
Copy link
Contributor Author

vhenzl commented Dec 6, 2020

PHP 8.0 is available today so this should be good to go now.

@mcg-web mcg-web merged commit a2a11bb into overblog:master Dec 7, 2020
@mcg-web
Copy link
Member

mcg-web commented Dec 7, 2020

Thank you @vhenzl !

@vhenzl
Copy link
Contributor Author

vhenzl commented Jan 11, 2021

@mcg-web Any chance of releasing this? Please 🙏

@mcg-web
Copy link
Member

mcg-web commented Jan 13, 2021

done in https://github.com/overblog/dataloader-php/releases/tag/v0.6.0 . Thanks again @vhenzl !

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.

Support for PHP 8
3 participants