Skip to content

Commit

Permalink
Merge pull request #225 from georgique/patch-allowed-header-names
Browse files Browse the repository at this point in the history
Fix field name checks for aliases in header constructors
  • Loading branch information
Slamdunk authored Jan 6, 2023
2 parents 451b335 + f977415 commit 6e3d32a
Show file tree
Hide file tree
Showing 14 changed files with 241 additions and 53 deletions.
144 changes: 103 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 15 additions & 7 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@
<code>$k</code>
<code>$k</code>
</MixedArgumentTypeCoercion>
<MixedAssignment occurrences="13">
<MixedAssignment occurrences="14">
<code>$address</code>
<code>$address</code>
<code>$address</code>
Expand All @@ -1837,19 +1837,21 @@
<code>$address</code>
<code>$header</code>
<code>$header</code>
<code>$header</code>
<code>$list</code>
<code>$list</code>
<code>$v</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="6">
<MixedInferredReturnType occurrences="7">
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="26">
<MixedMethodCall occurrences="28">
<code>get</code>
<code>get</code>
<code>get</code>
Expand All @@ -1860,6 +1862,8 @@
<code>get</code>
<code>getAddressList</code>
<code>getAddressList</code>
<code>getFieldName</code>
<code>getFieldValue</code>
<code>getName</code>
<code>getName</code>
<code>getName</code>
Expand Down Expand Up @@ -1899,7 +1903,8 @@
<MixedAssignment occurrences="1">
<code>$value</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="7">
<MixedInferredReturnType occurrences="8">
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
Expand All @@ -1910,7 +1915,8 @@
</MixedInferredReturnType>
</file>
<file src="test/Header/ContentTransferEncodingTest.php">
<MixedInferredReturnType occurrences="3">
<MixedInferredReturnType occurrences="4">
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
Expand All @@ -1933,7 +1939,8 @@
<MixedAssignment occurrences="1">
<code>$value</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="5">
<MixedInferredReturnType occurrences="6">
<code>array</code>
<code>array</code>
<code>array</code>
<code>array</code>
Expand Down Expand Up @@ -2027,7 +2034,8 @@
</UnusedVariable>
</file>
<file src="test/Header/MimeVersionTest.php">
<MixedInferredReturnType occurrences="2">
<MixedInferredReturnType occurrences="3">
<code>array</code>
<code>array</code>
<code>array</code>
</MixedInferredReturnType>
Expand Down
Loading

0 comments on commit 6e3d32a

Please sign in to comment.