FIX property_exists() parameters mixup

property_exists() has first parameter "object_or_class" and second is a property to check
This commit is contained in:
zemiacsik 2023-03-13 13:51:48 +01:00 committed by GitHub
parent a4929a171e
commit 5b8d61b55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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