Bug #97646
closedExtbase property mapper does not work with uninitialized properties
0%
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.
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74674
Updated by Sascha Egerer over 2 years ago
- Is duplicate of Bug #95819: Extbase does not support uninitialized domain object properties added
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74674
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74674
Updated by Anonymous over 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset e92d3212e5990d525b71ac967445add7e994b8c1.
Updated by Tobi Ferger about 1 year ago
- Related to Bug #102278: Missing default value for property Container.php:$prototypeObjectsWhichAreCurrentlyInstanciated will lead to #1546632293 RuntimeException in GenericObjectValidator.php added