Skip to content

Commit

Permalink
:octocat: phan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 9, 2024
1 parent 998c8db commit fed28e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HeaderUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public static function normalize(iterable $headers):array{
}
}
else{
/** @phan-suppress-next-line PhanTypeArraySuspicious */
$val = self::trimValues([$val])[0];

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

/** @noinspection PhpParamsInspection */
/**
* @noinspection PhpParamsInspection (it is an array...)
* @phan-suppress-next-next-line PhanTypeMismatchArgumentInternal
*/
$val = implode(', ', array_values(self::trimValues($val)));

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

0 comments on commit fed28e2

Please sign in to comment.