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

gen_stub: Update to PHP-Parser 5.6.1 (#19495)

This fixes a PHP 8.5 Deprecation:

> Deprecated: Method SplObjectStorage::attach() is deprecated since 8.5, use
> method SplObjectStorage::offsetSet() instead in
> php-src/build/PHP-Parser-5.6.0/lib/PhpParser/Parser/Php7.php on line 2692
This commit is contained in:
Tim Düsterhus
2025-08-16 14:04:56 +02:00
committed by GitHub
parent a84a82ed88
commit 092127cf25

View File

@@ -6056,7 +6056,7 @@ function initPhpParser() {
}
$isInitialized = true;
$version = "5.6.0";
$version = "5.6.1";
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
if (!is_dir($phpParserDir)) {
installPhpParser($version, $phpParserDir);