Skip to content

Commit

Permalink
Fix `property_exists(): Passing null to parameter pimcore#2 ($propert…
Browse files Browse the repository at this point in the history
…y) of type string is deprecated`
  • Loading branch information
jdreesen committed Dec 20, 2022
1 parent 024c30e commit c9ff0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DataObject/Traits/ObjectVarTrait.php
Expand Up @@ -50,7 +50,7 @@ public function getObjectVars()
*/
public function getObjectVar($var)
{
if (!property_exists($this, $var)) {
if (!$var || !property_exists($this, $var)) {
return null;
}

Expand Down

0 comments on commit c9ff0ec

Please sign in to comment.