Skip to content

Commit

Permalink
Rich PHPDoc for the Rule interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 24, 2023
1 parent d6d9ef7 commit 23d29ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Rules/Rule.php
Expand Up @@ -6,6 +6,19 @@
use PHPStan\Analyser\Scope;

/**
* This is the interface custom rules implement. To register it in the configuration file
* use the `phpstan.rules.rule` service tag:
*
* ```
* services:
* -
* class: App\MyRule
* tags:
* - phpstan.rules.rule
* ```
*
* Learn more: https://phpstan.org/developing-extensions/rules
*
* @api
* @phpstan-template TNodeType of Node
*/
Expand Down

0 comments on commit 23d29ab

Please sign in to comment.