-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
`tests/StarWarsData.php` is no longer part of `webonyx/graphql-php` package
Try with |
PHP 8.0 is available today so this should be good to go now. |
Thank you @vhenzl ! |
@mcg-web Any chance of releasing this? Please 🙏 |
done in https://github.com/overblog/dataloader-php/releases/tag/v0.6.0 . Thanks again @vhenzl ! |
Resolves #40.
webonyx/graphql-php
. Going up to 7.2 would make things easier regarding PHPUnit.)composer check-platform-reqs
added to build steps^7.5|^8.5
to support PHP 7.1-8.0webonyx/graphql-php
updated to the current version 14--prefer-source
used forcomposer update
astests/StarWarsData.php
is no longer part ofwebonyx/graphql-php
package. Alternative options would be to create a local copy of the file in this repository or download it fromwebonyx/graphql-php
repo withwget
inbefore_install
.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).convertDeprecationsToExceptions
disabled to deal with deprecatedGraphQL::execute()
(related to Correct use without deprecatedGraphQL::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?