We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998c8db commit fed28e2Copy full SHA for fed28e2
src/HeaderUtil.php
@@ -54,6 +54,7 @@ public static function normalize(iterable $headers):array{
54
}
55
56
else{
57
+ /** @phan-suppress-next-line PhanTypeArraySuspicious */
58
$val = self::trimValues([$val])[0];
59
60
$normalized[$key][$name($val)] = $val;
@@ -67,7 +68,10 @@ public static function normalize(iterable $headers):array{
67
68
$val = [$val];
69
70
- /** @noinspection PhpParamsInspection */
71
+ /**
72
+ * @noinspection PhpParamsInspection (it is an array...)
73
+ * @phan-suppress-next-next-line PhanTypeMismatchArgumentInternal
74
+ */
75
$val = implode(', ', array_values(self::trimValues($val)));
76
77
// skip if the header already exists but the current value is empty
0 commit comments