-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: support for PHP 8.1 #62
base: main
Are you sure you want to change the base?
Conversation
php-resque still supports PHP 5.6, and the newer phpunit versions all require a newer one. My idea was to get the namespace changes in first (#56), since that is something that is still supported by 5.6, release that and do breaking changes for PHP 7/8 support after. Not sure what @danhunsaker 's plans are though :) |
Yeah, that makes sense 👍🏻 In my opinion 5.x shouldn't be a priority at this point anyway, since it is a blocker for teams/people using this library to adapt more recent versions of PHP. I'll be more than happy to help out for this transition wherever possible 🙂 |
Yeah, I need to fix the branches. PR target should always be
Exactly that, actually! Just gotta finish the work involved. |
Awesome, feel free to reach out if you need a set of helping hands 🙂 |
The pull request for that is actually pretty complete already, from a functional perspective. A minor code refactor and documentation update is all that's missing and then it should be ready. I plan to tackle that this weekend. What would be really appreciated though is testing. I updated all the existing unit tests and they pass, but "existing" is the watchword :) |
@danhunsaker what if I create a partial PR only replacing the deprecated Depending on the ETA for the namespace changes - our team could already move to PHP 8.1 👍🏻 |
Yeah, that seems straightforward enough. |
hey guys, very welcome changes. Any ETA for a new tag? 😄 |
I had created a PR doing exactly that. I closed it on seeing this PR. Shall I re-open it? |
@JoyceBabu Yes, I think that makes sense. I'm not sure of what's planned for everything that's in this PR, but that change alone should be fairly easy to merge, so a separate PR should be fine 🙂 |
I have reopened the PR. |
Can anyone provide me an ETA on when this PR gonna be merged? |
@TorstenDittmann Ok, go ahead and rebase against develop at your earliest convenience. |
It's great to see activity here. This looks good and would be great to have it released. Puts it closer to full support to 8.x. |
I used
main
as the base branch, since it appeared to be more up2date. If that was a mistake I'll gladly fix that and work fromdevelop
.Depends on #56
Changes
phpunit/phpunit
to^8.5
strftime($format)
withdate($format, time())
PHPUnit\Framework\TestCase
overPHPUnit_Framework_TestCase
$this->expectException(Exception::class)
$this->assertInternalType('array', $array)
with$this->assertIsArray($array)
* According to PHP 8.0 backward compatible changes => call_user_func_array() array keys will now be interpreted as parameter names, instead of being silently ignored.