Skip to content

Blink: port 6 phpdoc fixers - #292

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-port-phpdoc
Nov 4, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-port-phpdoc

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Ports 6 PHP-CS-Fixer phpdoc fixers to blink, validated for parity against the vendored PHP-CS-Fixer 3.95.27 test cases.

Landed

  • PhpdocArrayTypeFixer
  • PhpdocListTypeFixer
  • PhpdocTypesNoDuplicatesFixer
  • PhpdocAnnotationWithoutDotFixer
  • PhpdocAddMissingParamAnnotationFixer (configurable, only_untyped default true)
  • PhpdocParamOrderFixer

Each is registered in PhpdocFixers() with its upstream getPriority() value, carries an upstream master SourceURL(), and ships a parity test mirroring the upstream provideFixCases() expectations. README rule counts regenerated via bin/rule-counts.sh (blink 288 -> 294).

Skipped

  • PhpdocTagNoNamedArgumentsFixer - requires docblock creation/insertion (ensureIsDocBlockWithAnnotation) plus AttributeAnalyzer/FullyQualifiedNameAnalyzer; heavy structural manipulation not yet modeled in blink.
  • PhpdocToParamTypeFixer, PhpdocToReturnTypeFixer, PhpdocToPropertyTypeFixer - flagged risky in the task; parity could not be guaranteed, so deferred rather than shipping wrong behavior.

…notation-without-dot, add-missing-param, param-order)
@TomasVotruba
TomasVotruba merged commit 56cc59b into main Nov 4, 2026
21 checks passed
@TomasVotruba
TomasVotruba deleted the blink-port-phpdoc branch November 4, 2026 21:05
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