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

Various fixes for php 8.1 compatibility #370

Closed
wants to merge 1 commit into from
Closed

Conversation

edlerd
Copy link

@edlerd edlerd commented Dec 1, 2021

There are breaking changes in 8.1 to the ArrayAccess interface. The changes adapt to the new typed interface.
Various style fixes and an updated composer file. Since older php version will not be compatible, I am cutting any references in the travis file as well.

Edit: Found a more elegant solution by just annotating the ArrayAccess methods with #[\ReturnTypeWillChange]. This way everything stays backwards compatible and it works with php 8.1 as well.

@edlerd edlerd mentioned this pull request Dec 1, 2021
@anatol
Copy link

anatol commented Jan 21, 2022

Thanks for the PR.

Would it be possible to split PHP8.1 specific fixes from whitespace cleanup?

@aaronpk aaronpk mentioned this pull request Mar 26, 2022
@ondrejj
Copy link

ondrejj commented May 9, 2022

I can confirm, that this patch is required for php-8.1 and works.

@treffynnon
Copy link
Collaborator

Thanks for the PR, but I am closing it because it contains whitespace changes that are undesirable and there is a duplicate pull request without them: #372

@treffynnon
Copy link
Collaborator

Thanks - the core changes presented here have now been merged

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