Skip to content

PHP 8.1: Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible #30813

@ckujau

Description

@ckujau

I could not find this mentioned in #29287 ("Support PHP8.1") or #29862 ("Support PHP 8.1 - Second batch"), this now hitting the logs with PHP-FPM 8.1.2:

{
  "reqId": "VwuRT3uwj7cEAbRYDXyv",
  "level": 3,
  "time": "2022-01-22T00:15:02+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "Return type of OC\\Memcache\\Cache::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily su
ppress the notice at /usr/share/webapps/nextcloud/lib/private/Memcache/Cache.php#93",
  "userAgent": "--",
  "version": "23.0.0.10"
}

Everything appears to be working just fine, but maybe this message needs to be taken care of in the future?

Metadata

Metadata

Assignees

Labels

0. Needs triagePending check for reproducibility or if it fits our roadmapbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions