diff --git a/build/gen_stub.php b/build/gen_stub.php index 679f8a9824179..8038a098cfee9 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -3061,7 +3061,7 @@ private function getString(string $propName): array { ]; // If not set, use the current latest version $allVersions = ALL_PHP_VERSION_IDS; - $minPhp = $phpVersionIdMinimumCompatibility ?? end($allVersions); + $minPhp = $this->phpVersionIdMinimumCompatibility ?? end($allVersions); if ($minPhp < PHP_80_VERSION_ID) { // No known strings in 7.0 return $result;