Fix memory leak issue (https://github.com/felixfbecker/php-language-server/issues/425)
parent
63bf43e40c
commit
108fb37c46
|
@ -22,7 +22,7 @@ function getFqnsFromType($type): array
|
|||
}
|
||||
if ($type instanceof Types\Compound) {
|
||||
for ($i = 0; $t = $type->get($i); $i++) {
|
||||
foreach (getFqnsFromType($type) as $fqn) {
|
||||
foreach (getFqnsFromType($t) as $fqn) {
|
||||
$fqns[] = $fqn;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue