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-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
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