@@ -45,7 +45,7 @@ public function __construct(
4545
4646 public function getPropertyDeprecation (ReflectionProperty $ reflectionProperty ): ?Deprecation
4747 {
48- $ this ->propertyDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.propertyDeprecationExtension ' );
48+ $ this ->propertyDeprecationExtensions ??= $ this ->container ->getServicesByTag (PropertyDeprecationExtension:: PROPERTY_EXTENSION_TAG );
4949
5050 foreach ($ this ->propertyDeprecationExtensions as $ extension ) {
5151 $ deprecation = $ extension ->getPropertyDeprecation ($ reflectionProperty );
@@ -59,7 +59,7 @@ public function getPropertyDeprecation(ReflectionProperty $reflectionProperty):
5959
6060 public function getMethodDeprecation (ReflectionMethod $ methodReflection ): ?Deprecation
6161 {
62- $ this ->methodDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.methodDeprecationExtension ' );
62+ $ this ->methodDeprecationExtensions ??= $ this ->container ->getServicesByTag (MethodDeprecationExtension:: METHOD_EXTENSION_TAG );
6363
6464 foreach ($ this ->methodDeprecationExtensions as $ extension ) {
6565 $ deprecation = $ extension ->getMethodDeprecation ($ methodReflection );
@@ -73,7 +73,7 @@ public function getMethodDeprecation(ReflectionMethod $methodReflection): ?Depre
7373
7474 public function getClassConstantDeprecation (ReflectionClassConstant $ reflectionConstant ): ?Deprecation
7575 {
76- $ this ->classConstantDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.classConstantDeprecationExtension ' );
76+ $ this ->classConstantDeprecationExtensions ??= $ this ->container ->getServicesByTag (ClassConstantDeprecationExtension:: CLASS_CONSTANT_EXTENSION_TAG );
7777
7878 foreach ($ this ->classConstantDeprecationExtensions as $ extension ) {
7979 $ deprecation = $ extension ->getClassConstantDeprecation ($ reflectionConstant );
@@ -87,7 +87,7 @@ public function getClassConstantDeprecation(ReflectionClassConstant $reflectionC
8787
8888 public function getClassDeprecation (ReflectionClass |ReflectionEnum $ reflection ): ?Deprecation
8989 {
90- $ this ->classDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.classDeprecationExtension ' );
90+ $ this ->classDeprecationExtensions ??= $ this ->container ->getServicesByTag (ClassDeprecationExtension:: CLASS_EXTENSION_TAG );
9191
9292 foreach ($ this ->classDeprecationExtensions as $ extension ) {
9393 $ deprecation = $ extension ->getClassDeprecation ($ reflection );
@@ -101,7 +101,7 @@ public function getClassDeprecation(ReflectionClass|ReflectionEnum $reflection):
101101
102102 public function getFunctionDeprecation (ReflectionFunction $ reflectionFunction ): ?Deprecation
103103 {
104- $ this ->functionDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.functionDeprecationExtension ' );
104+ $ this ->functionDeprecationExtensions ??= $ this ->container ->getServicesByTag (FunctionDeprecationExtension:: FUNCTION_EXTENSION_TAG );
105105
106106 foreach ($ this ->functionDeprecationExtensions as $ extension ) {
107107 $ deprecation = $ extension ->getFunctionDeprecation ($ reflectionFunction );
@@ -115,7 +115,7 @@ public function getFunctionDeprecation(ReflectionFunction $reflectionFunction):
115115
116116 public function getConstantDeprecation (ReflectionConstant $ constantReflection ): ?Deprecation
117117 {
118- $ this ->constantDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.constantDeprecationExtension ' );
118+ $ this ->constantDeprecationExtensions ??= $ this ->container ->getServicesByTag (ConstantDeprecationExtension:: CONSTANT_EXTENSION_TAG );
119119
120120 foreach ($ this ->constantDeprecationExtensions as $ extension ) {
121121 $ deprecation = $ extension ->getConstantDeprecation ($ constantReflection );
@@ -129,7 +129,7 @@ public function getConstantDeprecation(ReflectionConstant $constantReflection):
129129
130130 public function getEnumCaseDeprecation (ReflectionEnumUnitCase |ReflectionEnumBackedCase $ enumCaseReflection ): ?Deprecation
131131 {
132- $ this ->enumCaseDeprecationExtensions ??= $ this ->container ->getServicesByTag (' phpstan.enumCaseDeprecationExtension ' );
132+ $ this ->enumCaseDeprecationExtensions ??= $ this ->container ->getServicesByTag (EnumCaseDeprecationExtension:: ENUM_CASE_EXTENSION_TAG );
133133
134134 foreach ($ this ->enumCaseDeprecationExtensions as $ extension ) {
135135 $ deprecation = $ extension ->getEnumCaseDeprecation ($ enumCaseReflection );
0 commit comments