FIX property_exists() parameters mixup

ensure that property parameter is a string
This commit is contained in:
zemiacsik 2023-03-14 08:42:22 +01:00 committed by GitHub
parent 5b8d61b55b
commit d60af9d16e
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($firstRecord ?? '', $by);
return is_array($firstRecord) ? array_key_exists($by, $firstRecord) : property_exists($firstRecord, $by ?? '');
}
/**