Skip to content

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
@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