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

[8.x] PHP 8.1 Support #39034

Merged
merged 26 commits into from
Oct 22, 2021
Merged

[8.x] PHP 8.1 Support #39034

merged 26 commits into from
Oct 22, 2021

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Sep 29, 2021

This PR contains more PHP 8.1 fixes:

  • Remove mimicking PHP 8.0 now that we're nearing the PHP 8.1 release date
  • Add prefer-lowest builds
  • Add separate build step for minimum versions for Symfony, PHPUnit & CommonMark we cannot bump these through Composer
  • Bumps some libraries for PHP 8.1 compatibility
  • Added more clearer message for skipped mail tests on PHP 8.1 since SwiftMailer won't be patched for it
  • Unskipped PHP 8.1 tests

.github/workflows/tests.yml Outdated Show resolved Hide resolved
@driesvints driesvints force-pushed the php8.1-fixes branch 2 times, most recently from 997118a to 219cc60 Compare September 30, 2021 08:52
@tillkruss
Copy link
Contributor

Predis fix merged here: predis/predis@92adf32

composer.json Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
@driesvints
Copy link
Member Author

@GrahamCampbell have patience 😅

@GrahamCampbell
Copy link
Member

@driesvints I don't follow? ^1.1.9 is better, coz it works right now and will also work when the tag is actually created (because the branch is named 1.1 on GitHub, so composer understands that the code there will become 1.1.9 in the future)

@driesvints
Copy link
Member Author

I will change it once Till has tagged a new release.

@GrahamCampbell
Copy link
Member

I just don't get why change it to v1.1.x-dev when you could have just cranked the patch number by 1?

@driesvints driesvints marked this pull request as ready for review October 22, 2021 09:07
@taylorotwell taylorotwell merged commit 1ad807a into 8.x Oct 22, 2021
@taylorotwell taylorotwell deleted the php8.1-fixes branch October 22, 2021 13:20
@driesvints
Copy link
Member Author

Thanks @mallardduck, @tillkruss, @GrahamCampbell and everyone else that worked on this PR! :)

chu121su12 pushed a commit to chu121su12/framework that referenced this pull request Oct 23, 2021
* Remove platform requirement

* Enable prefer-lowest builds for PHP 8.1

* Bump whoops

* Minimum symfony version

* Bump carbon

* Try dev

* Require commonmark

* Add phpunit

* Bump predis

* More clearly describe failing mail tests

* Remove skips for Redis tests

* try predis dev

* Make ArgonHasher aware of argon provider (laravel#39046)

* Make ArgonHasher aware of argon provider

If sodium provides the argon2 then threads must be 1, if "standard" (libargon2) is the provider it can be 1 or 2.
Not sure why this seems to only affect PHP 8.1 however as the behaviour seems to date back quite a bit.

https://github.com/php/php-src/blob/2a3760a2d12b1a4c5c0207386b6cae84e404ee7e/ext/sodium/sodium_pwhash.c#L197

* remove skips for Hashing tests

* Enable tests

* Re-skip test

* Adjust skips

* Re-enable dynamodb tests

* Bump predis

* Bump PHP AWS SDK

* Remove test skipping

* Update tests.yml

* Update tests.yml

* Bump SwiftMailer

* string fallbacks

* Update phpunit.xml.dist

* Remove skips

Co-authored-by: Dan <[email protected]>
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.

5 participants