[
https://issues.apache.org/jira/browse/NETBEANS-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305713#comment-17305713
]
Tomáš Procházka edited comment on NETBEANS-5367 at 4/19/21, 7:25 PM:
---------------------------------------------------------------------
Supported annotations are defined in
https://github.com/phpstan/phpstan-src/blob/master/src/PhpDoc/PhpDocNodeResolver.php
Generics are described in https://phpstan.org/blog/generics-in-php-using-phpdocs
- {{@phpstan-var <type>}}
- {{@phpstan-method <type> methodName(<type> $paramName)}}
- {{@phpstan-extends <type><<template>>}}
- {{@phpstan-implements <type><<template>>}}
- {{@phpstan-use <type><<template>>}}
- {{@phpstan-template <type> [of <type>]}}
- {{@phpstan-template-covariant <type> [of <type>]}}
- {{@phpstan-param <type> $name}}
- {{@phpstan-return <type>}}
- {{@phpstan-throws <Exception>}}
- {{@mixin <type>}}
- {{@phpstan-pure}}
- {{@phpstan-impure}}
- {{@phpstan-type <type> <type definition>}}
- {{@phpstan-import-type <type> from <class>}}
was (Author: kacer):
Supported annotations are defined in
https://github.com/phpstan/phpstan-src/blob/master/src/PhpDoc/PhpDocNodeResolver.php
Generics are described in https://phpstan.org/blog/generics-in-php-using-phpdocs
- {{@phpstan-var <type>}}
- {{@phpstan-method <type> methodName(<type> $paramName)}}
- {{@phpstan-extends <type><<template>>}}
- {{@phpstan-implements <type><<template>>}}
- {{@phpstan-use}}
- {{@phpstan-template <type> [of <type>]}}
- {{@phpstan-template-covariant <type> [of <type>]}}
- {{@phpstan-param <type> $name}}
- {{@phpstan-return <type>}}
- {{@phpstan-throws <Exception>}}
- {{@mixin <type>}}
- {{@phpstan-pure}}
- {{@phpstan-impure}}
- {{@phpstan-type <type> <type definition>}}
- {{@phpstan-import-type <type> from <class>}}
> Add PHPStan annotations to code completion
> ------------------------------------------
>
> Key: NETBEANS-5367
> URL: https://issues.apache.org/jira/browse/NETBEANS-5367
> Project: NetBeans
> Issue Type: Improvement
> Components: php - Editor
> Affects Versions: 12.3
> Reporter: Tomáš Procházka
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> PHPstan supports extended capabilities like extended array definitions, array
> shapes or generics to be used in PHPDoc annotations.
> It would be good to add supported {{@phpstan-}} annotation to code completion.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists