Merge pull request #9367 from martinduparc/patch-2

array_key_exists() on objects is deprecated in PHP 7.4
This commit is contained in:
Robbie Averill 2020-01-14 09:39:49 -08:00 committed by GitHub
commit 7c1a0571f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,7 +588,7 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L
$firstRecord = $this->first();
return array_key_exists($by, $firstRecord);
return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord);
}
/**