Skip to content

Narrow header array casts in doiTools - #5720

Merged
GlazerMann merged 1 commit into
ms609:masterfrom
redalert2fan:fix/doitools-type-narrowing
Aug 8, 2026
Merged

Narrow header array casts in doiTools#5720
GlazerMann merged 1 commit into
ms609:masterfrom
redalert2fan:fix/doitools-type-narrowing

Conversation

@redalert2fan

Copy link
Copy Markdown
Contributor

The header array from get_headers() is typed array<string|array>, so direct (string) casts on possibly-array values are flagged. Use @var string annotations on the numeric status lines and location values. Resolves 6 PHPStan level 7 errors.

The header array from get_headers() is typed array<string|array<string>>,
so direct (string) casts on possibly-array values are flagged. Use @var
string annotations on the numeric status lines and location values.
Resolves 6 PHPStan level 7 errors.
@github-actions github-actions Bot added the tools label Aug 7, 2026
@GlazerMann
GlazerMann merged commit 90b8c18 into ms609:master Aug 8, 2026
21 checks passed
@redalert2fan
redalert2fan deleted the fix/doitools-type-narrowing branch August 8, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants