From: Nikita Popov Date: Mon, 26 Oct 2020 08:05:25 +0000 (+0100) Subject: Fix parameter stats generation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c868b186e0243b656c4573571ab3ba6e26a3714;p=php Fix parameter stats generation [ci skip] --- diff --git a/build/gen_stub.php b/build/gen_stub.php index e17e083cb4..f8fce7fa01 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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]++;