File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,6 @@ private function handleTypedProperty(Node $node): void
247247 return ;
248248 }
249249
250- if ($ this ->isBuiltInType ($ type ->toString ())) {
251- return ;
252- }
253-
254250 $ this ->classDescriptionBuilder
255251 ->addDependency (new ClassDependency ($ type ->toString (), $ node ->getLine ()));
256252 }
@@ -350,38 +346,7 @@ private function addParamDependency(Node\Param $node): void
350346 return ;
351347 }
352348
353- if ($ type ->isSpecialClassName ()) {
354- return ;
355- }
356-
357- if ($ this ->isBuiltInType ($ type ->toString ())) {
358- return ;
359- }
360-
361349 $ this ->classDescriptionBuilder
362350 ->addDependency (new ClassDependency ($ type ->toString (), $ node ->getLine ()));
363351 }
364-
365- private function isBuiltInType (string $ typeName ): bool
366- {
367- $ builtInTypes = [
368- 'bool ' ,
369- 'int ' ,
370- 'float ' ,
371- 'string ' ,
372- 'array ' ,
373- 'object ' ,
374- 'resource ' ,
375- 'never ' ,
376- 'void ' ,
377- 'false ' ,
378- 'true ' ,
379- 'null ' ,
380- 'callable ' ,
381- 'mixed ' ,
382- 'iterable ' ,
383- ];
384-
385- return \in_array ($ typeName , $ builtInTypes );
386- }
387352}
You can’t perform that action at this time.
0 commit comments