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

Support PHP 8 #7

Merged
merged 3 commits into from
Feb 9, 2021
Merged

Support PHP 8 #7

merged 3 commits into from
Feb 9, 2021

Conversation

bakerkretzmar
Copy link

@bakerkretzmar bakerkretzmar commented Feb 8, 2021

This PR adds support for PHP 8 by:

  • not calling the deprecated ->getClass() method on a ReflectionParameter if running PHP 8.0 or higher
  • using . instead of + to concatenate strings
  • allowing phpunit/phpunit:^8.0.0

As far as I know Travis CI does not support PHP 8, so I also moved your CI from Travis to GitHub Actions. Your tests will run automatically on all pull requests and all pushes to the master branch, and it's free for public repos. The setup and tests are unchanged and they all pass, you can view the output on my fork: https://github.com/bakerkretzmar/jsonmapper/pull/1/checks.

Closes #6.

@thehappybug thehappybug merged commit 877fb8b into apimatic:master Feb 9, 2021
@thehappybug
Copy link
Collaborator

thehappybug commented Feb 9, 2021

@bakerkretzmar Thank you for your hard work, especially for adding the GitHub workflow for testing.

@thehappybug
Copy link
Collaborator

This PR is part of the latest version: https://github.com/apimatic/jsonmapper/releases/tag/v2.0.2

@bakerkretzmar
Copy link
Author

Thanks!

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.

2 participants