From ce6a85a1c2af4561b0fc2415b7f9712af3a4852b Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Wed, 7 Jun 2023 11:48:32 +0200 Subject: [PATCH] DeprecatedScopeResolver - description in PHPDoc --- .../Deprecations/DeprecatedScopeResolver.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Rules/Deprecations/DeprecatedScopeResolver.php b/src/Rules/Deprecations/DeprecatedScopeResolver.php index 9949831..27d4b87 100644 --- a/src/Rules/Deprecations/DeprecatedScopeResolver.php +++ b/src/Rules/Deprecations/DeprecatedScopeResolver.php @@ -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 {