Skip to content

Various fixes for php 8.1 compatibility#370

Closed
edlerd wants to merge 1 commit intoj4mie:masterfrom
edlerd:master
Closed

Various fixes for php 8.1 compatibility#370
edlerd wants to merge 1 commit intoj4mie:masterfrom
edlerd:master

Conversation

@edlerd
Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

ondrejj commented May 9, 2022

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

@treffynnon
Copy link
Copy Markdown
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
Copy Markdown
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