Expand static-analysis normalization coverage for PHPStan pseudo-types#11
Merged
Conversation
Agent-Logs-Url: https://github.com/voku/php-doc-fixer/sessions/7860c25c-293e-4add-b342-f9d01ea6229f Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/php-doc-fixer/sessions/d5444a9d-bef3-44e1-a3ca-24e83f2b154c Co-authored-by: voku <264695+voku@users.noreply.github.com>
Agent-Logs-Url: https://github.com/voku/php-doc-fixer/sessions/d5444a9d-bef3-44e1-a3ca-24e83f2b154c Co-authored-by: voku <264695+voku@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
voku
April 26, 2026 14:19
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The static-analysis path handled basic refined types, but did not sufficiently validate PHPStan-specific pseudo-types against native/manual-safe stub types. This adds targeted coverage and tightens normalization so PHPStan call map types compare cleanly with stub signatures.
Normalization updates
TypeNormalizerto collapse additional PHPStan-only syntax into comparable native types:resource (closed)Regression coverage
list<T>class-string<T>pure-callable(...)iterable<K, V>int-mask<...>resource (closed)static_analysiscommand treats these inputs as equivalent to native/phpDoc stub types.Docs
Example of the newly covered input shape: