Skip to content

Add ZEND_PARSE_PARAMETERS_NONE to private constructors#21344

Open
jordikroon wants to merge 2 commits intophp:masterfrom
jordikroon:zzp-private-constructor
Open

Add ZEND_PARSE_PARAMETERS_NONE to private constructors#21344
jordikroon wants to merge 2 commits intophp:masterfrom
jordikroon:zzp-private-constructor

Conversation

@jordikroon
Copy link
Contributor

@jordikroon jordikroon commented Mar 4, 2026

Formally this should also be added to private constructors, which I stumbled on when blocking __PHP_Incomplete_Class.

This PR adds ZEND_PARSE_PARAMETERS_NONE() to all private constructors. No more follow-up PR's to be expected.

@jordikroon jordikroon changed the title add ZEND_PARSE_PARAMETERS_NONE to private constructors Add ZEND_PARSE_PARAMETERS_NONE to private constructors Mar 4, 2026
@jordikroon
Copy link
Contributor Author

Welp I didn't expect any tests to fail, but the ReflectionAttribute construction test should not have parameters. So those have been removed from the test.

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.

1 participant