Skip to content

Update Error Docs - #15867

Merged
ondrejmirtes merged 1 commit into
phpstan:2.3.xfrom
phpstan-bot:create-pull-request/patch-4unop4t
Nov 28, 2026
Merged

ondrejmirtes merged 1 commit into
phpstan:2.3.xfrom
phpstan-bot:create-pull-request/patch-4unop4t

Conversation

@phpstan-bot

Copy link
Copy Markdown
Collaborator

The latest errorsIdentifiers.json update only shifted the source line numbers for phpunit.attributeRequiresPhpVersion. No identifiers were added, and every identifier already has a doc page.

The line numbers moved because phpstan-phpunit added a fix in AttributeVersionRequirementHelper ("Some #[RequiresPhp] errors are autofixable", phpstan/phpstan-phpunit#362). When a version requirement is incomplete, is written as a plain string literal, and uses the >= or ^ operator, the fix fills in the missing parts with .0 so the version becomes major.minor.patch (for example >= 8.1 becomes >= 8.1.0).

Changes to website/errors/phpunit.attributeRequiresPhpVersion.md:

  • Added autofixable: true to the frontmatter.
  • Added a paragraph to "How to fix it" that explains what --fix changes and what still has to be fixed by hand.

🤖 Generated with Claude Code

- Mark `phpunit.attributeRequiresPhpVersion` as `autofixable: true`
- Describe that `--fix` completes incomplete `>=`/`^` version requirements to major.minor.patch
@ondrejmirtes
ondrejmirtes merged commit a96d56c into phpstan:2.3.x Nov 28, 2026
14 checks passed
@ondrejmirtes
ondrejmirtes deleted the create-pull-request/patch-4unop4t branch November 28, 2026 22:42
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.

2 participants