@@ -27,7 +27,6 @@ private function __construct(
2727 private ?string $ file ,
2828 private ClassReflection $ classReflection ,
2929 private ?string $ trait ,
30- private bool $ explicit ,
3130 private array $ parameterNameMapping ,
3231 private array $ parents ,
3332 )
@@ -54,11 +53,6 @@ public function getTrait(): ?string
5453 return $ this ->trait ;
5554 }
5655
57- public function isExplicit (): bool
58- {
59- return $ this ->explicit ;
60- }
61-
6256 /**
6357 * @return array<int, self>
6458 */
@@ -115,15 +109,13 @@ public static function resolvePhpDocBlockForProperty(
115109 ?string $ trait ,
116110 string $ propertyName ,
117111 ?string $ file ,
118- ?bool $ explicit ,
119112 ): self
120113 {
121114 $ docBlocksFromParents = [];
122115 foreach (self ::getParentReflections ($ classReflection ) as $ parentReflection ) {
123116 $ oneResult = self ::resolvePropertyPhpDocBlockFromClass (
124117 $ parentReflection ,
125118 $ propertyName ,
126- $ explicit ?? $ docComment !== null ,
127119 );
128120
129121 if ($ oneResult === null ) { // Null if it is private or from a wrong trait.
@@ -138,7 +130,6 @@ public static function resolvePhpDocBlockForProperty(
138130 $ file ,
139131 $ classReflection ,
140132 $ trait ,
141- $ explicit ?? true ,
142133 [],
143134 $ docBlocksFromParents ,
144135 );
@@ -149,15 +140,13 @@ public static function resolvePhpDocBlockForConstant(
149140 ClassReflection $ classReflection ,
150141 string $ constantName ,
151142 ?string $ file ,
152- ?bool $ explicit ,
153143 ): self
154144 {
155145 $ docBlocksFromParents = [];
156146 foreach (self ::getParentReflections ($ classReflection ) as $ parentReflection ) {
157147 $ oneResult = self ::resolveConstantPhpDocBlockFromClass (
158148 $ parentReflection ,
159149 $ constantName ,
160- $ explicit ?? $ docComment !== null ,
161150 );
162151
163152 if ($ oneResult === null ) { // Null if it is private or from a wrong trait.
@@ -172,7 +161,6 @@ public static function resolvePhpDocBlockForConstant(
172161 $ file ,
173162 $ classReflection ,
174163 null ,
175- $ explicit ?? true ,
176164 [],
177165 $ docBlocksFromParents ,
178166 );
@@ -188,7 +176,6 @@ public static function resolvePhpDocBlockForMethod(
188176 ?string $ trait ,
189177 string $ methodName ,
190178 ?string $ file ,
191- ?bool $ explicit ,
192179 array $ originalPositionalParameterNames ,
193180 array $ newPositionalParameterNames ,
194181 ): self
@@ -198,7 +185,6 @@ public static function resolvePhpDocBlockForMethod(
198185 $ oneResult = self ::resolveMethodPhpDocBlockFromClass (
199186 $ parentReflection ,
200187 $ methodName ,
201- $ explicit ?? $ docComment !== null ,
202188 $ newPositionalParameterNames ,
203189 );
204190
@@ -234,7 +220,6 @@ public static function resolvePhpDocBlockForMethod(
234220 $ classReflection ->getFileName (),
235221 $ classReflection ,
236222 $ traitReflection ->getName (),
237- $ explicit ?? $ traitMethod ->getDocComment () !== null ,
238223 self ::remapParameterNames ($ newPositionalParameterNames , $ positionalMethodParameterNames ),
239224 [],
240225 );
@@ -245,7 +230,6 @@ public static function resolvePhpDocBlockForMethod(
245230 $ file ,
246231 $ classReflection ,
247232 $ trait ,
248- $ explicit ?? true ,
249233 self ::remapParameterNames ($ originalPositionalParameterNames , $ newPositionalParameterNames ),
250234 $ docBlocksFromParents ,
251235 );
@@ -294,7 +278,6 @@ private static function getParentReflections(ClassReflection $classReflection):
294278 private static function resolveConstantPhpDocBlockFromClass (
295279 ClassReflection $ classReflection ,
296280 string $ name ,
297- bool $ explicit ,
298281 ): ?self
299282 {
300283 if ($ classReflection ->hasConstant ($ name )) {
@@ -310,7 +293,6 @@ private static function resolveConstantPhpDocBlockFromClass(
310293 $ classReflection ,
311294 $ name ,
312295 $ classReflection ->getFileName (),
313- $ explicit ,
314296 );
315297 }
316298
@@ -320,7 +302,6 @@ private static function resolveConstantPhpDocBlockFromClass(
320302 private static function resolvePropertyPhpDocBlockFromClass (
321303 ClassReflection $ classReflection ,
322304 string $ name ,
323- bool $ explicit ,
324305 ): ?self
325306 {
326307 if ($ classReflection ->hasNativeProperty ($ name )) {
@@ -342,7 +323,6 @@ private static function resolvePropertyPhpDocBlockFromClass(
342323 $ trait ,
343324 $ name ,
344325 $ classReflection ->getFileName (),
345- $ explicit ,
346326 );
347327 }
348328
@@ -355,7 +335,6 @@ private static function resolvePropertyPhpDocBlockFromClass(
355335 private static function resolveMethodPhpDocBlockFromClass (
356336 ClassReflection $ classReflection ,
357337 string $ name ,
358- bool $ explicit ,
359338 array $ positionalParameterNames ,
360339 ): ?self
361340 {
@@ -396,7 +375,6 @@ private static function resolveMethodPhpDocBlockFromClass(
396375 $ trait ,
397376 $ name ,
398377 $ classReflection ->getFileName (),
399- $ explicit ,
400378 $ positionalParameterNames ,
401379 $ positionalMethodParameterNames ,
402380 );
0 commit comments