Skip to content

Commit 4bba59d

Browse files
committed
Update PHP-Parser from 4.3.0 to 4.9.0
PHP-Parser 4.3.0 failed to recognize that the `match` keyword could be used as a class constant name. 4.9.0 also adds support for keywords in namespaced names. See https://github.com/nikic/PHP-Parser/releases So forcing regeneration of spl_iterators.stub.php failed. PECL extensions using gen_stub.php would also be affected by the same issue. ``` ext/spl/spl_iterators.stub.php public function __construct(Iterator $iterator, string $regex, int $mode = self::MATCH, int $flags = 0, int $preg_flags = 0) {} ``` Testing: I successfully regenerated stubs by setting forceRegeneration to true and running `touch **/*.stub.php; make`. The stubs did not change, as expected. Closes GH-6036
1 parent e6044d4 commit 4bba59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ function initPhpParser() {
11051105
}
11061106

11071107
$isInitialized = true;
1108-
$version = "4.3.0";
1108+
$version = "4.9.0";
11091109
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
11101110
if (!is_dir($phpParserDir)) {
11111111
installPhpParser($version, $phpParserDir);

0 commit comments

Comments
 (0)