1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Reflection\Deprecation; |
4: | |
5: | use PHPStan\BetterReflection\Reflection\ReflectionConstant; |
6: | |
7: | /** |
8: | * This interface allows you to provide custom deprecation information |
9: | * |
10: | * To register it in the configuration file use the following tag: |
11: | * |
12: | * ``` |
13: | * services: |
14: | * - |
15: | * class: App\PHPStan\MyProvider |
16: | * tags: |
17: | * - phpstan.constantDeprecationExtension |
18: | * ``` |
19: | * |
20: | * @api |
21: | */ |
22: | interface ConstantDeprecationExtension |
23: | { |
24: | |
25: | public const CONSTANT_EXTENSION_TAG = 'phpstan.constantDeprecationExtension'; |
26: | |
27: | public function getConstantDeprecation(ReflectionConstant $reflection): ?Deprecation; |
28: | |
29: | } |
30: |