Skip to content

Conversation

sasezaki
Copy link
Contributor

fix #19747

@sasezaki
Copy link
Contributor Author

I created this PR based on the following issue, so I would to mention @Girgias

Roave/BetterReflection#1518

@Girgias
Copy link
Member

Girgias commented Sep 21, 2025

For my own use case I don't need this class to be non-final as I don't use the BetterReflection Adapter classes.

But I don't understand why the constant one needs to be a non-final but ReflectionFiber can still be final?

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

@sasezaki
Copy link
Contributor Author

I would like to close and withdraw this for now.
In the previous #7520, there was a use case where it was needed for PHPStan, but for this ReflectionConstant, there doesn't seem to be any case where it's actually needed at the moment.

@sasezaki sasezaki closed this Sep 21, 2025
@iluuu1994 iluuu1994 reopened this Sep 22, 2025
@iluuu1994 iluuu1994 changed the base branch from PHP-8.4 to master September 22, 2025 15:29
@iluuu1994 iluuu1994 force-pushed the non-final-reflection-constant branch from 109b5b4 to 7445ce5 Compare September 22, 2025 15:31
@iluuu1994 iluuu1994 requested a review from a team September 22, 2025 15:33
Copy link
Member

@edorian edorian left a comment

Choose a reason for hiding this comment

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

No RM objections

@iluuu1994 iluuu1994 closed this in 78c997f Sep 22, 2025
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.

Make ReflectionConstant non-final
5 participants