Skip to content

Commit 464f541

Browse files
MCLOUD-14020: Normalized function doc block content updation
1 parent a403e5c commit 464f541

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Environment/ConfigReader.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ public function read(): array
8181
}
8282

8383
/**
84-
* Recursively unwrap Symfony YAML TaggedValue objects and handle common tags
84+
* Recursively unwrap Symfony YAML TaggedValue objects and handle common tags.
85+
*
86+
* This method handles !env, !include, !php/const, and unknown tags,
87+
* ensuring all YAML values are normalized to arrays or scalars for safe merging.
8588
*
8689
* @param mixed $data
8790
* @return mixed
8891
*
89-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
92+
* @SuppressWarnings("PHPMD.CyclomaticComplexity") Method is intentionally complex due to tag handling.
9093
*/
9194
private function normalizeYamlData(mixed $data): mixed
9295
{

0 commit comments

Comments
 (0)