Skip to content

Update Error Docs - #14917

Open
phpstan-bot wants to merge 1 commit into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-ur2jxlf
Open

Update Error Docs#14917
phpstan-bot wants to merge 1 commit into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-ur2jxlf

Conversation

@phpstan-bot

Copy link
Copy Markdown
Contributor

The latest website/src/errorsIdentifiers.json update removed the parameter.void identifier.

Investigating the diff showed this was the only meaningful change — every other entry in the diff was just a source line-number shift caused by the PHP-Parser 5.8.0 upgrade, with no rule-class or identifier changes.

The parameter.void rule was removed from phpstan-src in commit c473981 ("Fix build after upgrading to PHP-Parser 5.8.0"). PHP-Parser 5.8.0 now rejects void used as a parameter type at parse time, so PHPStan no longer needs a dedicated rule/identifier for it.

Changes

  • Deleted website/errors/parameter.void.md, since the identifier no longer exists in errorsIdentifiers.json and is no longer produced by any rule.

After the change, the error docs are fully in sync with the identifier list: no identifiers are missing a .md file, and no orphaned .md files remain.

- Removed `website/errors/parameter.void.md` after the identifier was
  dropped from `errorsIdentifiers.json`
- The `parameter.void` rule was removed from phpstan-src (commit c473981,
  "Fix build after upgrading to PHP-Parser 5.8.0") because PHP-Parser
  5.8.0 now rejects `void` as a parameter type at parse time
- All other diff changes were only source line-number shifts, requiring
  no documentation updates
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