Update PhpDoc type for Drupal\jsonapi\JsonApiResource\Link::$rel

Created on 8 September 2023, 9 months ago
Updated 26 September 2023, 9 months ago

Problem/Motivation

/**
   * The link relation types.
   *
   * @var string[]
   *
   * @todo: change this type documentation to be a single string in
   *   https://www.drupal.org/project/drupal/issues/3080467.
   */
  protected $rel;

While working on JSON:API 1.1 i found this reference, that issue has been fixed ages ago and the code already assumes String. This pretty much is a small bugfix in the doctype.

Steps to reproduce

Proposed resolution

Update the doctype from string[] to string.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
JSON API 

Last updated 1 day ago

Created by

🇳🇱Netherlands bbrala Netherlands

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024