You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AbraFlexi/RO.php
+24-11Lines changed: 24 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1045,13 +1045,14 @@ public function fixResponseTypes(array $response)
1045
1045
}
1046
1046
1047
1047
/**
1048
-
* Fix AbraFlexi record field types.
1048
+
* Converts the fields of an AbraFlexi record array to appropriate native PHP types based on column metadata.
1049
1049
*
1050
-
* @param string $evidence force other than current
1050
+
* 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.
1051
1051
*
1052
-
* @throws \Ease\Exception
1053
-
*
1054
-
* @return array with items typed
1052
+
* @param array $record The record data to typecast.
1053
+
* @param string|null $evidence Optional evidence name to override the current one.
1054
+
* @return array The record with fields converted to native types or objects.
1055
+
* @throws \Ease\Exception If an unknown field type is encountered.
0 commit comments