Skip to content

Commit 7302707

Browse files
wip
1 parent b6023d3 commit 7302707

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/Analyzer/FileVisitor.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)