Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

#9 Add PHP 8.0 support #10

Merged
merged 5 commits into from
Aug 10, 2021
Merged

Conversation

kick-the-bucket
Copy link
Contributor

@kick-the-bucket kick-the-bucket commented Jul 20, 2021

PR checklist

  • An issue/feature request has been created for this PR
  • Pull Request title clearly describes the work in the pull request and the Pull Request description provides details about how to validate the work. Missing information here may result in a delayed response.
  • File the PR against the master branch
  • The code in this PR is covered by unit tests

Link to issue/feature request

#9

Description

  • Add PHP 8.0 to the build matrix
  • Enable composer caching for faster builds
  • Change dependencies for PHP 5.6 to 8.0 cross compatibility
  • Remove composer.lock file for easier cross-version testing
  • Use Yoast PhpUnitPolyfill base test case in PsrStreamInterfaceImplTest
  • Fix boolean encoding
  • Fix exception handling in PHP 8
    Since PHP 8.0 a lot of function throw TypeErrors instead of returning false when they receive bad parameters
    TypeError does not extend Exception, both of those implement Throwable interface, which is not present in PHP 5.6, only since 7.0

tkm and others added 5 commits July 20, 2021 14:13
Add PHP 8.0 to the build matrix
Enable composer caching
Change dependencies for PHP 8
Remove composer.lock file
Use Yoast PhpUnitPolyfill base test case in PsrStreamInterfaceImplTest
Fix boolean encoding
Fix exception handling in PHP 8
@kick-the-bucket
Copy link
Contributor Author

kick-the-bucket commented Aug 6, 2021

Hey @danny-gallagher, could you review this?

Also please rerun the build, it did succeed in my fork: https://github.com/kick-the-bucket/client-encryption-php/actions/runs/1055116434 - this is an issue with permissions in github, when creating MRs from forks...

@danny-gallagher
Copy link
Contributor

Hey @danny-gallagher, could you review this?

Also please rerun the build, it did succeed in my fork: https://github.com/kick-the-bucket/client-encryption-php/actions/runs/1055116434 - this is an issue with permissions in github, when creating MRs from forks...

Thanks for the PR, It's in our queue :)

@jaaufauvre jaaufauvre self-requested a review August 10, 2021 10:32
Copy link
Member

@jaaufauvre jaaufauvre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kick-the-bucket, all good! Thanks very much for the PR (and having maintained the backward compatibility)

php-version: ${{ matrix.php }}
coverage: none

- name: Cache Composer dependencies
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaaufauvre jaaufauvre merged commit 52ee6e5 into Mastercard:main Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants