HomeDevCentral

Don't force to write classes for each document type

Description

Don't force to write classes for each document type

One of the concept of the documents collection is to allow to drop arbitrary
JSON files and get a PHP object from the dictionary fields.

While it's certainly not optimal, and while code could store the properties
in a specific hashmap instead, this attribute is added for compatibility
with PHP 8.2+.

Ref T2144.

Differential Revision: https://devcentral.nasqueron.org/D4174

Details

Provenance
derecksonAuthored on Fri, Aug 21, 03:51
derecksonPushed on Fri, Aug 21, 03:56
Differential Revision
D4174: Don't force to write classes for each document type
Parents
rOBSIDIANbb9ab8bdcf22: Resolve class name with ::class
Branches
Unknown
Tags
Unknown
Tasks
T2144: Port Obsidian code to PHP 8.4