Deprecated function : Return type of Drupal\linkit\Suggestion\SimpleSuggestion::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize()

Created on 3 February 2022, about 3 years ago
Updated 12 July 2023, over 1 year ago

Problem/Motivation

Using the module on D9 with PHP8.1 I notice deprecation warning :
Deprecated function : Return type of Drupal\linkit\Suggestion\SimpleSuggestion::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize():

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡«πŸ‡·France Dom.

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.

  • πŸ‡ΊπŸ‡ΈUnited States douggreen Winchester, VA

    Please tag a new release with this.

  • πŸ‡©πŸ‡ͺGermany sascha_meissner Planet earth

    This issue also applies to 6.0.0-beta3, applied patch #11 and it fixed the issue

  • πŸ‡ΊπŸ‡ΈUnited States SamLerner

    I would love a new release with this patch. I'm upgrading a number of sites to D10 and this module is used by all of them. Thanks in advance!

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Another +1 for a release please!!

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    Another +1 for a release please!!

    This change is present in release 6.0.0 (Drupal 9.5 through 10.0.x) and 6.1.0 (Drupal 10.1.x+). Assuming the comment above was requesting a release for 8.x-5.x, I would say that it would be better to update to Linkit version 6, and that should not require any configuration changes in the site.

    Let me know if I can clarify if I'm misunderstanding.

  • πŸ‡ΊπŸ‡ΈUnited States SamLerner

    Ah! We've been using 6.0.0-beta3 and I didn't notice that a 6.0.0 release was created 4 days ago on July 7th. Sweet!

    Since that version is compatible with both D9 and D10, I don't know if we need to have it in the 8.x-5.x branch. I just needed a version that worked in D9 and is D10-compatible as well.

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    I was indeed referencing 8.x-5.x, I’ll look to move to 6. Thanks!

Production build 0.71.5 2024