Skip to content

Add TypeToVarTagFixer to flip @type doc tag into @var#37

Merged
TomasVotruba merged 1 commit into
mainfrom
type-to-var-tag-fixer
Jul 3, 2026
Merged

Add TypeToVarTagFixer to flip @type doc tag into @var#37
TomasVotruba merged 1 commit into
mainfrom
type-to-var-tag-fixer

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

What

New TypeToVarTagFixer flips a @type doc tag into the expected @var, also upgrading a single-asterisk inline comment to a proper doc block:

/* @type \Mautic\ReportBundle\Model\ReportModel $model */
$model = ...;

becomes

/** @var \Mautic\ReportBundle\Model\ReportModel $model */
$model = ...;
  • Added to DocblockLevel (inline @var group).
  • Covered with tests (inline assign, doc block, skip existing @var).

Also

  • Removed SingleLineCommentStyleFixer from the comments common set and the laravel set.

Also removes SingleLineCommentStyleFixer from the comments and laravel sets.
@TomasVotruba TomasVotruba merged commit 633d42e into main Jul 3, 2026
7 checks passed
@TomasVotruba

Copy link
Copy Markdown
Member Author

Nice work 👍

@TomasVotruba TomasVotruba deleted the type-to-var-tag-fixer branch July 3, 2026 10:07
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