diff --git a/src/AbraFlexi/RO.php b/src/AbraFlexi/RO.php index 625cd471..324f01b4 100644 --- a/src/AbraFlexi/RO.php +++ b/src/AbraFlexi/RO.php @@ -1045,13 +1045,14 @@ public function fixResponseTypes(array $response) } /** - * Fix AbraFlexi record field types. + * Converts the fields of an AbraFlexi record array to appropriate native PHP types based on column metadata. * - * @param string $evidence force other than current + * Fields are cast or transformed according to their defined types, including booleans, numbers, strings, dates, and relations. Relation fields are converted to `Relation` objects, supporting both single and multiple values. Unknown field types result in an exception. * - * @throws \Ease\Exception - * - * @return array with items typed + * @param array $record The record data to typecast. + * @param string|null $evidence Optional evidence name to override the current one. + * @return array The record with fields converted to native types or objects. + * @throws \Ease\Exception If an unknown field type is encountered. */ public function fixRecordTypes(array $record, $evidence = null) {