@@ -108,25 +108,18 @@ private function createFromReflectionParameter(ReflectionParameter $parameter) :
108108 throw new InvalidArgumentException ('Unable to get class of ' . $ parameter ->getName ());
109109 }
110110
111- //phpcs:ignore SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable
112- /** @var ReflectionClass<object> $class */
113-
114111 return $ this ->createFromReflectionClass ($ class );
115112 }
116113
117114 private function createFromReflectionMethod (ReflectionMethod $ method ) : Context
118115 {
119- //phpcs:ignore SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable
120- /** @var ReflectionClass<object> $class */
121116 $ class = $ method ->getDeclaringClass ();
122117
123118 return $ this ->createFromReflectionClass ($ class );
124119 }
125120
126121 private function createFromReflectionProperty (ReflectionProperty $ property ) : Context
127122 {
128- //phpcs:ignore SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable
129- /** @var ReflectionClass<object> $class */
130123 $ class = $ property ->getDeclaringClass ();
131124
132125 return $ this ->createFromReflectionClass ($ class );
@@ -135,14 +128,14 @@ private function createFromReflectionProperty(ReflectionProperty $property) : Co
135128 private function createFromReflectionClassConstant (ReflectionClassConstant $ constant ) : Context
136129 {
137130 //phpcs:ignore SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable
138- /** @var ReflectionClass<object> $class */
131+ /** @phpstan- var ReflectionClass<object> $class */
139132 $ class = $ constant ->getDeclaringClass ();
140133
141134 return $ this ->createFromReflectionClass ($ class );
142135 }
143136
144137 /**
145- * @param ReflectionClass<object> $class
138+ * @phpstan- param ReflectionClass<object> $class
146139 */
147140 private function createFromReflectionClass (ReflectionClass $ class ) : Context
148141 {
0 commit comments