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

Add PHP 8 support #27

Merged
merged 20 commits into from
Apr 20, 2022
Merged

Add PHP 8 support #27

merged 20 commits into from
Apr 20, 2022

Conversation

joelambert
Copy link
Member

@joelambert joelambert commented Jul 22, 2021

  • Upgrade to PHPUnit 9
  • Upgrade to php 8 compatible Router
  • Determine minimum Timber version for php 8 support
  • Update LJ core to support php8
  • Test inside WordPress
  • Wait until new version of AltoRouter is released and bump min version of rareloop/router to include the fix

@joelambert joelambert changed the title Add php8 support Add PHP 8 support Jul 22, 2021
@joelambert
Copy link
Member Author

Failing tests due to a PHP 8 issue with Timber.

Code has been patched but not yet released, see: timber/timber#2450

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 87.964% when pulling 9b51520 on add-php8-support into d877406 on master.

@coveralls
Copy link

coveralls commented Jul 22, 2021

Coverage Status

Coverage decreased (-0.6%) to 88.141% when pulling 9b51520 on add-php8-support into d877406 on master.

Joe Lambert and others added 8 commits September 17, 2021 13:25
PHPUnit v9 doesn't like to run standalone if there's a copy also installed via composer
It's not a very stable dependency and doesn't add enough value for the headache it causes.
v1.6.10 onwards has support for PHP 8.1 syntax but this is causing issues with some of the other testing libraries we have which haven't yet updated their support. Holding back until Mockery and Brainmonkey have better 8.1 support.
@nealoke
Copy link

nealoke commented Oct 29, 2021

From what I can see it has been merged 😄 🙏

@ghost
Copy link

ghost commented Dec 21, 2021

Any new news regarding the support for PHP 8 @adamtomat

8.1 will need us to resolve a few other issues in 3rd party packages first.
@joelambert
Copy link
Member Author

I've rolled back the commit to add PHP 8.1 as a test environment. There are a few other issues in 3rd party packages that we'll need to resolve before this becomes possible.

@JshGrn
Copy link

JshGrn commented Feb 19, 2022

Hi! Great to see this, what is currently outstanding for support of at least PHP 8.0?

@JshGrn
Copy link

JshGrn commented Mar 11, 2022

Hi, what is left to at least support PHP 8?

@trsteel88
Copy link

@joelambert would love to see this merged. Is there anything outstanding? Happy to help where I can.

@adamtomat
Copy link
Member

@trsteel88 we just need to test this on some existing sites to make sure there are no issues. If you're able to do any testing and let us know if it's good / of any bugs that would be 👍

We plan on doing some thorough testing in the next couple weeks too

@JshGrn
Copy link

JshGrn commented Apr 4, 2022

I would be happy to run it for testing, I didn't know what was outstanding or not

@joelambert joelambert marked this pull request as ready for review April 20, 2022 09:16
@joelambert joelambert merged commit 1f242c9 into master Apr 20, 2022
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.

None yet

6 participants