-
Notifications
You must be signed in to change notification settings - Fork 3
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
PHP 8.1: Deprecated function: Return type of FacetapiFacet::offsetExists($offset) should either be compatible with ArrayAccess #14
Comments
@argiepiano feel like making a PR? I can test it and we can merge it later as part of Bug Squad. |
argiepiano
added a commit
to argiepiano/facetapi
that referenced
this issue
Aug 27, 2023
…at extend ArrayAccess Fixes backdrop-contrib#14
Done! PR #18 |
LGTM |
I'll merge this, since it was LGTM back in August. |
argiepiano
added a commit
that referenced
this issue
Nov 29, 2023
Issue #14. Add #[\ReturnTypeWillChange] to methods that extend ArrayAccess
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running this module on PHP 8.1, I'm getting:
Deprecated function: Return type of FacetapiFacet::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 1131 of... Sites/localhost/panettone/modules/facetapi/plugins/adapter.inc)
.This is similar to several other places in core and contrib where we've had to add
#[\ReturnTypeWillChange]
right above the offending methods.The text was updated successfully, but these errors were encountered: