Implements the Serializable interface, which is deprecated.

Created on 7 July 2022, over 2 years ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

When using the module with PHP 8.1 the following warning is being thrown:

Deprecated function: Drupal\views_ajax_get\CacheableViewsAjaxResponse implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in include() (line 11 of /app/web/modules/contrib/views_ajax_get/src/CacheableViewsAjaxResponse.php)

Proposed resolution

Implement the required __serialize() and __unserialize() methods.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom 3li U.K. 🇬🇧

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