Skip to content

Commit

Permalink
Minor type improvements for vimeo/psalm:5.3
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Dec 20, 2022
1 parent 9409879 commit 164bb40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.2.0@fb685a16df3050d4c18d8a4100fe83abe6458cba">
<files psalm-version="5.3.0@b6faa3e96b8eb50ec71384c53799b8a107236bb6">
<file src="src/CallbackStream.php">
<ImplementedReturnTypeMismatch occurrences="1">
<code>null|callable</code>
Expand Down Expand Up @@ -40,9 +40,8 @@
<MixedAssignment occurrences="1">
<code>$value</code>
</MixedAssignment>
<MixedPropertyTypeCoercion occurrences="2">
<MixedPropertyTypeCoercion occurrences="1">
<code>$headers</code>
<code>$new-&gt;headers</code>
</MixedPropertyTypeCoercion>
<ParamNameMismatch occurrences="2">
<code>$header</code>
Expand Down
4 changes: 1 addition & 3 deletions src/MessageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,7 @@ private function validateProtocolVersion($version): void
}
}

/**
* @return string[]
*/
/** @return list<string> */
private function filterHeaderValue(mixed $values): array
{
if (! is_array($values)) {
Expand Down

0 comments on commit 164bb40

Please sign in to comment.