[php-src] PR #21784: gen_stub: support use statements in stub files
| From: | GromNaN | Date: | Fri, 17 Apr 2026 08:01:54 +0000 |
| Subject: | [php-src] PR #21784: gen_stub: support use statements in stub files | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35755@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21784
Author: GromNaN
Fix a bug in
build/gen_stub.php: use and use group statements
in stub files caused an "Unexpected node Stmt_Use" exception. Since
NameResolver already resolves names to their fully qualified form before
handleStatements() runs, these nodes can simply be skipped.