Merge pull request #9535 from td204/3.7

array_key_exists() on objects is deprecated
This commit is contained in:
Robbie Averill 2020-06-03 10:36:11 -07:00 committed by GitHub
commit b1adf2190b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -475,7 +475,7 @@ class ArrayList extends ViewableData implements SS_List, SS_Filterable, SS_Sorta
return false;
}
return array_key_exists($by, $firstRecord);
return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($by, $firstRecord);
}
/**