-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP8 - Adapter Signatures Compatibility #712
PHP8 - Adapter Signatures Compatibility #712
Conversation
57e525a
to
b4e0780
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch looks good, but we need to get rid of the design implications of core reflection API leaking into the new API: filtering logic should therefore be moved from the src/Reflection
to the src/Reflection/Adapter
logic, to avoid having ugly/complex logic like bitmask filtering exposed in the BC-compliant API.
Moved to |
@Ocramius, I moved the filter logic to the adapter layer for both |
@michaeljoelphillips can you expand on BetterReflection/.github/workflows/phpunit.yml Lines 17 to 27 in ecd6c1e
php: 8.0 to it, perhaps?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
The addition of PHP 8.x to CI will happen separately, I suppose :-)
Thanks for the clarification comments and work on this, @michaeljoelphillips!
This PR takes a stab at the first item listed in #701 concerning PHP8 support.
What should be done about the missing constants on
\ReflectionClassConstant
for PHP < 8.0? In this PR I am declaring them onRoave\BetterReflection\Reflection\ReflectionClassConstant
. I am assuming that the expectation for users on PHP7 will be to have some access to constants for the filter values, but I am open to feedback.Since they are currently undocumented, here are the constants for reference: