Skip to content

Update dev tooling#1867

Merged
spawnia merged 3 commits intomasterfrom
update-tooling
Mar 7, 2026
Merged

Update dev tooling#1867
spawnia merged 3 commits intomasterfrom
update-tooling

Conversation

@spawnia
Copy link
Copy Markdown
Collaborator

@spawnia spawnia commented Mar 7, 2026

  • assume npx is installed, not prettier directly
  • apply rector
  • fix prettier patterns
  • harmonize docs

spawnia and others added 3 commits March 7, 2026 21:53
Wrap @phpstan-type annotations in ```php code fences so prettier treats
them as code instead of prose. Use 4-backtick fences in renderMethod()
when the docblock itself contains a code example (e.g. AST::fromArray).
Normalize trailing newline so the generated file is prettier-stable.

Fix PHPDoc source formatting in Parser, Visitor, and BuildSchema to
produce output that already matches what prettier expects: markdown
lists with bold option names for Parser options, backtick code fences
for Visitor code examples, and 2-space list continuation for BuildSchema.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@spawnia spawnia merged commit fd55782 into master Mar 7, 2026
20 checks passed
@spawnia spawnia deleted the update-tooling branch March 7, 2026 21:57
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