Merge pull request #10725 from zemiacsik/patch-ArrayList-fix

FIX property_exists() parameters mixup
This commit is contained in:
Guy Sartorelli 2023-03-20 18:52:02 +13:00 committed by GitHub
commit e47eedff7d
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 ?? '');
}
/**