Skip to content

Commit 1b88578

Browse files
authored
Merge pull request #64 from Spoje-NET/coderabbitai/docstrings/884b2bb
📝 Add docstrings to `62-multilple-releations-parsing-problem`
2 parents 884b2bb + 7e08a68 commit 1b88578

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)