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

Ensure php 8.1 compatibility #373

Merged

Conversation

chris-doehring
Copy link

@chris-doehring chris-doehring commented Sep 10, 2021

What is the reason for this PR?

phpspec/prophecy has released version 1.14.0 today, which now allows to use the latest tagged phpunit under php 8.1.

Author's checklist

Summary of changes

I have added php 8.1 to the test workflow to test new changes with php 8.1 in the future to ensure compatibility. I had to fix some deprecations though in order for phpunit to run successfully.

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

@bram-pkg
Copy link
Member

I think this is good for future proofing.

@chris-doehring chris-doehring changed the title Add php 8.1 to the test workflow Ensure php 8.1 compatibility Sep 10, 2021
.github/workflows/tests.yml Outdated Show resolved Hide resolved
src/Faker/Provider/en_ZA/Person.php Show resolved Hide resolved
test/Faker/Provider/DateTimeTest.php Outdated Show resolved Hide resolved
test/Faker/Provider/nl_NL/PersonTest.php Show resolved Hide resolved
@chris-doehring chris-doehring marked this pull request as ready for review September 10, 2021 21:44
.github/workflows/tests.yml Outdated Show resolved Hide resolved
@chris-doehring
Copy link
Author

@GrahamCampbell Changed, thanks! :)

test/Faker/Provider/nl_NL/PersonTest.php Show resolved Hide resolved
test/Faker/Provider/DateTimeTest.php Outdated Show resolved Hide resolved
src/Faker/Provider/en_ZA/Person.php Show resolved Hide resolved
@bram-pkg bram-pkg dismissed GrahamCampbell’s stale review September 13, 2021 08:02

Requested changes have been applied.

test/Faker/Provider/DateTimeTest.php Outdated Show resolved Hide resolved
@driesvints
Copy link

Hey all. Is there anything I can help to do to get this PR moving? PHP 8.1 release date is approaching and atm this is blocking Laravel from offering full PHP 8.1 support. Let me know how I can help!

@GrahamCampbell GrahamCampbell merged commit 8d6044a into FakerPHP:main Sep 29, 2021
@bram-pkg
Copy link
Member

Dries,

I think this is actually done now. @GrahamCampbell just needs to approve the applied changes after his request.

@chris-doehring chris-doehring deleted the feature/php8.1-test-workflow branch September 29, 2021 12:07
@chris-doehring
Copy link
Author

Thanks guys :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants