]> granicus.if.org Git - php/commitdiff
Fix parameter stats generation
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 26 Oct 2020 08:05:25 +0000 (09:05 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 26 Oct 2020 08:05:25 +0000 (09:05 +0100)
[ci skip]

build/gen_stub.php

index e17e083cb44c222bbd5a83cf9a8cc3cc5c33a32a..f8fce7fa01095834051276ffd7d133ec3175c113 100755 (executable)
@@ -1351,7 +1351,7 @@ if ($printParameterStats) {
     foreach ($fileInfos as $fileInfo) {
         foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
             foreach ($funcInfo->args as $argInfo) {
-                if (!isset($context->parameterStats[$argInfo->name])) {
+                if (!isset($parameterStats[$argInfo->name])) {
                     $parameterStats[$argInfo->name] = 0;
                 }
                 $parameterStats[$argInfo->name]++;