Skip to content

Commit 6f5c24e

Browse files
VitexusVítězslav Dvořák
authored andcommitted
Merge pull request #64 from Spoje-NET/coderabbitai/docstrings/884b2bb
📝 Add docstrings to `62-multilple-releations-parsing-problem`
1 parent 594c654 commit 6f5c24e

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
@@ -1118,13 +1118,14 @@ public function fixResponseTypes(array $response)
11181118
}
11191119

11201120
/**
1121-
* Fix AbraFlexi record field types.
1121+
* Converts the fields of an AbraFlexi record array to appropriate native PHP types based on column metadata.
11221122
*
1123-
* @param string $evidence force other than current
1123+
* 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.
11241124
*
1125-
* @throws \Ease\Exception
1126-
*
1127-
* @return array with items typed
1125+
* @param array $record The record data to typecast.
1126+
* @param string|null $evidence Optional evidence name to override the current one.
1127+
* @return array The record with fields converted to native types or objects.
1128+
* @throws \Ease\Exception If an unknown field type is encountered.
11281129
*/
11291130
public function fixRecordTypes(array $record, $evidence = null)
11301131
{

0 commit comments

Comments
 (0)