Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @phan- prefixes for recognized doc tags #235

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

anomiex
Copy link
Contributor

@anomiex anomiex commented Apr 3, 2024

The following prefixes are added:

  • @phan-assert
  • @phan-assert-if-false
  • @phan-assert-if-true
  • @phan-extends
  • @phan-inherits
  • @phan-method
  • @phan-mixin
  • @phan-param
  • @phan-property
  • @phan-property-read
  • @phan-property-write
  • @phan-real-return
  • @phan-return
  • @phan-template
  • @phan-type
  • @phan-var

No changes to any of the parsing were made, as the syntaxes seem to match what's already done for the existing unprefixed tags and/or the existing @psalm- and @phpstan- prefixed tags.

The following prefixes are added:

* `@phan-assert`
* `@phan-assert-if-false`
* `@phan-assert-if-true`
* `@phan-extends`
* `@phan-inherits`
* `@phan-method`
* `@phan-mixin`
* `@phan-param`
* `@phan-property`
* `@phan-property-read`
* `@phan-property-write`
* `@phan-real-return`
* `@phan-return`
* `@phan-template`
* `@phan-type`
* `@phan-var`

No changes to any of the parsing were made, as the syntaxes seem to
match what's already done for the existing unprefixed tags and/or the
existing `@psalm-` and `@phpstan-` prefixed tags.
@ondrejmirtes ondrejmirtes merged commit cd06d6b into phpstan:1.23.x Apr 3, 2024
43 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes
Copy link
Member

Please send a PR to phpstan-src too.

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