From 108fb37c46b2e49838028e640ad4e89d70c810db Mon Sep 17 00:00:00 2001 From: John Nguyen Date: Mon, 14 Aug 2017 10:38:23 +1000 Subject: [PATCH] Fix memory leak issue (https://github.com/felixfbecker/php-language-server/issues/425) --- src/FqnUtilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FqnUtilities.php b/src/FqnUtilities.php index a3aab05..b5d01a9 100644 --- a/src/FqnUtilities.php +++ b/src/FqnUtilities.php @@ -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; } }