1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

gen_stub: fix PropertyInfo::getString() version compatibility (#17779)

I forgot a `$this->` in #15751
This commit is contained in:
DanielEScherzer
2025-02-13 23:30:28 -08:00
committed by GitHub
parent 78d934ad8e
commit f5c9f8bcd3

View File

@@ -3071,7 +3071,7 @@ class PropertyInfo extends VariableLike
];
// 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;