Skip to content

fix: Allow variadic syntax in PHPDoc parameter annotation in gen_stub.php#20342

Merged
kocsismate merged 3 commits into
php:PHP-8.3from
mitelg:fix/gen_stub-variadic-parameter-phpdoc
Dec 27, 2025
Merged

fix: Allow variadic syntax in PHPDoc parameter annotation in gen_stub.php#20342
kocsismate merged 3 commits into
php:PHP-8.3from
mitelg:fix/gen_stub-variadic-parameter-phpdoc

Conversation

@mitelg

@mitelg mitelg commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

This PR changes the gen_stub.php script to allow PHPDoc parameter annotations to have proper variadic syntax.
The according regExes are adjusted to allow additional ... right in front of the parameter name. See linked issue for more information.

Closes #20277

Comment thread build/gen_stub.php Outdated
@mitelg mitelg force-pushed the fix/gen_stub-variadic-parameter-phpdoc branch from 653ca50 to 4e5214b Compare October 31, 2025 06:43

@iluuu1994 iluuu1994 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct to me. @kocsismate Can you verify?

@mitelg

mitelg commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

hey @TimWolla @iluuu1994 @kocsismate

first thanks for your reviews! it seems we are ready to go, right? Or do you need something else from my side?
I absolutely do not want to build up pressure or being annoying! 🙈 I just wonder, if we can get that in, now that PHP 8.5 settled a bit 😊

Thanks again, and have a nice day 👋

@iluuu1994

Copy link
Copy Markdown
Member

@mitelg I removed some unnecessary changes (the named capture group was the incorrct one), and will merge as soon as CI is green.

Not that it matters, we just want no unrelated changes.
@kocsismate

Copy link
Copy Markdown
Member

Ping @iluuu1994 :) I've just noticed that merge was forgotten. I can do it if you don't have time for that.

@kocsismate kocsismate merged commit 09cb5ad into php:PHP-8.3 Dec 27, 2025
9 checks passed
kocsismate added a commit that referenced this pull request Dec 27, 2025
* PHP-8.3:
  fix: Allow variadic syntax in PHPDoc parameter annotation in `gen_stub.php` (#20342)
kocsismate added a commit that referenced this pull request Dec 27, 2025
* PHP-8.4:
  fix: Allow variadic syntax in PHPDoc parameter annotation in `gen_stub.php` (#20342)
kocsismate added a commit that referenced this pull request Dec 27, 2025
* PHP-8.5:
  fix: Allow variadic syntax in PHPDoc parameter annotation in `gen_stub.php` (#20342)
@mitelg mitelg deleted the fix/gen_stub-variadic-parameter-phpdoc branch December 27, 2025 12:20
@mitelg

mitelg commented Dec 27, 2025

Copy link
Copy Markdown
Contributor Author

@kocsismate thanks for merging!

@iluuu1994

Copy link
Copy Markdown
Member

@kocsismate Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants