Skip to content

Commit c0c9bab

Browse files
author
Vítězslav Dvořák
committed
Merge branch 'main' of github.com:Spoje-NET/php-abraflexi
2 parents 27435c7 + 8d4f9db commit c0c9bab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/AbraFlexi/RO.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,14 @@ public function fixResponseTypes(array $response)
10451045
}
10461046

10471047
/**
1048-
* Fix AbraFlexi record field types.
1048+
* Converts the fields of an AbraFlexi record array to appropriate native PHP types based on column metadata.
10491049
*
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.
10511051
*
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.
10551056
*/
10561057
public function fixRecordTypes(array $record, $evidence = null)
10571058
{

0 commit comments

Comments
 (0)