TypedData's "Any" @DataType plugin has unclear documentation

Created on 10 October 2017, about 7 years ago
Updated 25 January 2023, almost 2 years ago

Problem/Motivation

The TypedData Any defines this type as:

The "any" data type does not implement a list or complex data interface, nor is it mappable to any primitive type. Thus, it may contain any PHP data for which no further metadata is available.

It explicitly forbids the value it stores "implement a list or complex data interface, nor is it mappable to any primitive type". However, its code implementation does not check those conditions above.

Proposed resolution

Update the docs to make it clear

Remaining tasks

Test documentation with a few people, and if possible, provide an example

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
Typed dataΒ  β†’

Last updated 16 days ago

  • Maintained by
  • πŸ‡¦πŸ‡ΉAustria @fago
Created by

πŸ‡¨πŸ‡³China skyredwang Shanghai

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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