ArrayCustomVariablesFilter: check for type (PHP81)

This commit is contained in:
Thomas Gelf 2021-12-13 13:35:16 +01:00
parent ef4068ebde
commit f35ded85fb

View File

@ -8,6 +8,7 @@ class ArrayCustomVariablesFilter extends CustomVariablesFilter
{ {
return parent::match($type, $name, $object) return parent::match($type, $name, $object)
&& $object !== null && $object !== null
&& isset($object->datatype)
&& ( && (
preg_match('/DataTypeArray[\w]*$/', $object->datatype) preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|| ( || (