Skip to content

Add NativeTypeSniff and MixedUnion fixer with PHPStan support#45

Open
voku wants to merge 9 commits into
php:mainfrom
voku:main
Open

Add NativeTypeSniff and MixedUnion fixer with PHPStan support#45
voku wants to merge 9 commits into
php:mainfrom
voku:main

Conversation

@voku

@voku voku commented Jul 26, 2026

Copy link
Copy Markdown

Here are two new checks and fixer classes that fixed the following stuff in the php documentation :

The implementation was run against php/doc-en commit 84534c795fc64cc1866ae267fec3574249ec5f74:

10 violations
10 affected files
10 automatic fixes applied
10 documentation lines changed
0 violations remaining after the convergence run

Breakdown:
Callable → callable (3)
Object → object (2)
Array → array (2)
String → string (1)
integer → int (1)
mixex+null → mixed (1)

voku and others added 9 commits July 26, 2026 01:07
…fixer

Add NativeTypeSniff and NativeTypeFixer to canonicalize type names and collapse mixed unions
…fixes

Introduce MixedUnion sniff/fixer and add replacement support on Violations
Introduce generic fixerData for Violation and update Sniff/Fixer contracts
Fix PHPStan generics and PHPUnit coverage metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant