Skip to content

Commit

Permalink
DeprecatedScopeResolver - description in PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 5, 2023
1 parent 0f3fbc3 commit ce6a85a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Rules/Deprecations/DeprecatedScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@

use PHPStan\Analyser\Scope;

/** @api */
/**
* This is the interface for custom deprecated scope resolvers.
*
* To register it in the configuration file use the `phpstan.deprecations.deprecatedScopeResolver` service tag:
*
* ```
* services:
* -
* class: App\PHPStan\MyExtension
* tags:
* - phpstan.deprecations.deprecatedScopeResolver
* ```
*
* @api
*/
interface DeprecatedScopeResolver
{

Expand Down

0 comments on commit ce6a85a

Please sign in to comment.