TimWolla · GitHub

@TimWolla

Copy link Copy Markdown

Member

@TimWolla

@TimWolla

@TimWolla

@TimWolla

TimWolla marked this pull request as ready for review

April 1, 2026 17:33

@TimWolla

DanielEScherzer

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.

ext/reflection looks okay
But maybe we should also add some tests so that future changes won't accidentally break things that are expected? E.g, based on the RFC

  • confirm that it is unbacked
  • confirm that there are only these two cases (e.g. the reflection output)

@TimWolla

Copy link Copy Markdown

Member Author

accidentally

I don't see how changing the stub file can happen "by accident". The enum has no associated behavior, so any test would just be testing the stub generator.

@DanielEScherzer

Copy link Copy Markdown

Member

accidentally

I don't see how changing the stub file can happen "by accident". The enum has no associated behavior, so any test would just be testing the stub generator.

The "by accident" part would be that the stub file changes and the properties (not PHP properties, but in the sense of how things work) of the enum change without realizing that the current properties are based on an agreed-upon RFC. Just to have a second barrier to ensure that changes are intentional - not a big deal if you don't want to add the tests though

iluuu1994

@TimWolla

@TimWolla

adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request

Aug 4, 2026

Read the original on github.com ↗