Skip to content

Commit fed28e2

Browse files
committed
:octocat: phan happy
1 parent 998c8db commit fed28e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/HeaderUtil.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public static function normalize(iterable $headers):array{
5454
}
5555
}
5656
else{
57+
/** @phan-suppress-next-line PhanTypeArraySuspicious */
5758
$val = self::trimValues([$val])[0];
5859

5960
$normalized[$key][$name($val)] = $val;
@@ -67,7 +68,10 @@ public static function normalize(iterable $headers):array{
6768
$val = [$val];
6869
}
6970

70-
/** @noinspection PhpParamsInspection */
71+
/**
72+
* @noinspection PhpParamsInspection (it is an array...)
73+
* @phan-suppress-next-next-line PhanTypeMismatchArgumentInternal
74+
*/
7175
$val = implode(', ', array_values(self::trimValues($val)));
7276

7377
// skip if the header already exists but the current value is empty

0 commit comments

Comments
 (0)