Skip to content

Add PHP8 to CI builds #1116

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

Closed
wants to merge 1 commit into from
Closed

Conversation

markstory
Copy link

Trying to get PHP8 compatibility started. This is likely wrong and broken, but need to start somewhere.

Refs #1108

Trying to get PHP8 compatibility started.
@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
@svbackend
Copy link

Hello guys, could someone explain me the process of migration to php8? As far as I understand the main problem is phpunit update (from v7 to v9) as it's not backward compatible? So this enqueue package in order to support php8 should have a new branch with different php version requirements I suppose? Is there any branch where I can join to help migrate to php8? Because I just cloned this repository, but I can't just add a php^8 to composer.json and update travis.yml as all previous builds will fail because of new phpunit version (as you can see in this pull request).

Would be really nice to have some guidance/roadmap from maintainers with list of steps to accomplish in order to migrate to php8, I see it like this:

  1. Create new branch for next major version of enqueue with php8 support
  2. In this new branch travis.yml should be cleaned up, remove every php^7 build from there and add only new php8 builds
  3. Update tests to be compatible with phpunit 9
  4. Update whole codebase, need to rename all newly reserved words (e.g class with name Match not longer allowed in php8, ref: Support PHPUnit 8.5 on PHP 8 sebastianbergmann/phpunit#4533)
  5. ...
  6. Profit!

is this sounds as a plan or am I missing something?

@stale stale bot removed the wontfix label Dec 26, 2020
@Steveb-p
Copy link
Contributor

@svbackend in general yes, it boils down to updating phpunit dependency and checking if the codebase of library itself doesn't have any issues with PHP8 syntax.

One point I need to make though - this library will still need to maintain PHP7 compatibility for some time, at least until PHP 7.4 reaches it's end of life I suppose. This pretty much means that PHP8-specific syntax should not be used, as it will break compatibility with PHP7.

@svbackend
Copy link

@Steveb-p ok, thanks, sounds clear, I will create a new PR within a week to get process started

@Jurigag
Copy link

Jurigag commented Jan 15, 2021

Anyone plans to do something here? It seems to me this PR died.

@svbackend
Copy link

@Jurigag Yep, I'm working on it in different PR:
#1121

Hopefully to finish by the end of January, meanwhile I'm already using enqueue with redis on php 8, seems like it's working fine

@Jurigag
Copy link

Jurigag commented Jan 15, 2021

Then i think this PR could be closed then? Are you planning to also update related repos like https://github.com/php-enqueue/sns ?

@svbackend
Copy link

svbackend commented Jan 15, 2021

Then i think this PR could be closed then?

I guess so

Are you planning to also update related repos like https://github.com/php-enqueue/sns ?

It's main/monorepo, as far as I understand my changes here would be automatically applied to all other repositories for specific transports, so yes, sns also in that list

@markstory
Copy link
Author

I can close this given that #1121 is progressing better. I haven't had much time to dedicate to this sorry.

@markstory markstory closed this Jan 23, 2021
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.

4 participants