Skip to content

Commit

Permalink
Fixed Psalm error (#249)
Browse files Browse the repository at this point in the history
* Fixed Psalm error

* Tried a different fix
  • Loading branch information
davidbyoung committed Apr 6, 2023
1 parent f49b6d6 commit b820459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MediaTypeFormatterMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ private function getBestMediaTypeFormatterMatch(
): ?MediaTypeFormatterMatch {
// Rank the media type headers if they are rankable
if (\count($mediaTypeHeaders) > 0 && $mediaTypeHeaders[0] instanceof AcceptMediaTypeHeaderValue) {
/** @psalm-suppress ArgumentTypeCoercion Psalm seems to not be convinced that this is an array of AcceptMediaTypeHeaderValue objects */
$mediaTypeHeaders = $this->rankAcceptMediaTypeHeaders($mediaTypeHeaders);
}

Expand Down

0 comments on commit b820459

Please sign in to comment.