PHP 8: Deprecated function errors

Created on 1 December 2022, about 2 years ago
Updated 18 February 2024, 10 months ago

On PHP 8, I get these errors on a search page with facets:

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 include_once() (Zeile 1135 von /var/www/drupal/sites/all/modules/contrib/facetapi/plugins/facetapi/adapter.inc).

Deprecated function: Return type of FacetapiFacet::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (Zeile 1135 von /var/www/drupal/sites/all/modules/contrib/facetapi/plugins/facetapi/adapter.inc).

Deprecated function: Return type of FacetapiFacet::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (Zeile 1135 von /var/www/drupal/sites/all/modules/contrib/facetapi/plugins/facetapi/adapter.inc).

Deprecated function: Return type of FacetapiFacet::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (Zeile 1135 von /var/www/drupal/sites/all/modules/contrib/facetapi/plugins/facetapi/adapter.inc).
๏ฟผAnzeigendatum, neueste oben
๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Ronino

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024