Skip to content
Snippets Groups Projects
Commit 1f025a22 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Benni Mack
Browse files

[FEATURE] Let class schema detect multiple property types

Extbase creates class schema objects for classes to gather
information for further analysis. One part of that information
is property types. In recent TYPO3 and PHP versions, extbase did
expect a property to have zero or one type.

Due to changes to PHP (Union Types/Intersection Types), extbase's
internal behaviour needs to change and detect all declared types.

This is especially useful in models whose properties can now be
declared as

public Entity|LazyLoadingProxy|null $reference = null;

Releases: main
Resolves: #98132
Change-Id: I36dd8fd3d152e8dbf0443a5a1866c444d6fecbd0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75417


Tested-by: default avatarStefan Froemken <froemken@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Froemken <froemken@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: core...
parent 70b69429
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment