-
Notifications
You must be signed in to change notification settings - Fork 752
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
Hooks reflection #4110
base: master
Are you sure you want to change the base?
Hooks reflection #4110
Conversation
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.
Okay, seems like the output from gen_stub is wrong, that's good to know :|
But thanks for working on it!
Co-authored-by: Gina Peter Banyard <[email protected]>
b2540ee
to
dcdd281
Compare
$rProp->getHook(PropertyHookType::Get); // Returns an instance of \ReflectionMethod. | ||
$rProp->getHook(PropertyHookType::Set); // Returns null. |
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.
I would prefer a var_dump()
(possible using ::class
) with a screen tag instead of a comment, as those are more annoying for translations.
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.
Hm. In that case, do we even need the screen tag anymore? Just have it show output and leave it to the new wasm runner.
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.
Yes, I have php/web-php#1180 to reuse the output.
I don't see the point in forcing everyone to run WASM, and require JS, just to see the expected output.
I didn't realize, but @Crell you didn't address some of the review comments. |
Switched all the examples to generate output. I did not include the output, because it's a hassle to do and we now have the Wasm runner that will produce it for us on-demand. |
d7c5dd1
to
a204b11
Compare
@Girgias Which comments haven't been addressed? |
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.
Output of examples is missing.
I disagree that manually pre-generating the output is worthwhile now that we have the Wasm runner. If someone else would like to modify the PR to include that, go ahead, but I have limited time with a baby now, so won't be doing so. |
New PR, includes #4039, which generates the stubs.
Resolves #4039.
I'm not certain if the enum is in the right place, but I wasn't sure where else to put it. Open to suggestions.