Actions
Bug #97646
closedExtbase property mapper does not work with uninitialized properties
Start date:
2022-05-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
Description
Extbase does not map properties that are not initialized.
Since PHP 7.4 it is possible to have uninitialized properties which is not the same as nullable properties.
The PHP method `get_object_vars($object)` does only return initialized properties.
The PHP method `get_class_vars(get_class($object))` returns the properties of the class.
So as soon as a property is typed but not initialized it will not be returned by get_object_vars(). This breaks the extbase mapper.
Actions