Implements the Serializable interface, which is deprecated.

Created on 7 July 2022, almost 2 years ago
Updated 8 August 2023, 11 months 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.69.0 2024