Commit c6fed04a authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Christian Kuhn
Browse files

[BUGFIX] Prevent failed property access in PublicPropertyDeprecationTrait

Resolves: #98418
Releases: main, 11.5
Change-Id: Ic97959c358978b2032e5fa18aaec915552e2ff1a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75847


Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent b0b2a1b3
......@@ -101,7 +101,7 @@ trait PublicPropertyDeprecationTrait
if (isset($this->deprecatedPublicProperties[$propertyName])) {
trigger_error($this->deprecatedPublicProperties[$propertyName], E_USER_DEPRECATED);
}
return $this->$propertyName;
return property_exists($this, $propertyName) ? $this->$propertyName : null;
}
/**
......
Supports Markdown
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