-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ReflectionConstant
in PHP 8.4 does not offer declaration file information
#15723
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
Comments
Hi @janedbal. Yes, we don't currently have this information available at runtime. You can leave this open as a feature request. |
Allow determining the name of the file that defined a constant, when the constant was defined in userland code via `define()`. For constants defined by PHP core or extensions, `false` is returned, matching the existing `getFileName()` methods on other reflection classes.
Unfortunately my understanding is that it is too late to include this in 8.4 as a new feature, since we have already tagged the first release candidate, but I've sent a PR at #15847 |
That doesn't sound right, RC1 is scheduled for September 26th. I think they are only tagged 2 days prior. |
Oh, I guess I misread the last tag - good to know that this can still be included |
Allow determining the name of the file that defined a constant, when the constant was defined in userland code via `define()`. For constants defined by PHP core or extensions, `false` is returned, matching the existing `getFileName()` methods on other reflection classes.
Allow determining the name of the file that defined a constant, when the constant was defined in userland code via `define()`. For constants defined by PHP core or extensions, `false` is returned, matching the existing `getFileName()` methods on other reflection classes.
Allow determining the name of the file that defined a constant, when the constant was defined in userland code via `define()`. For constants defined by PHP core or extensions, `false` is returned, matching the existing `getFileName()` methods on other reflection classes.
Description
When I spotted this new reflection class, I was hoping I could use it for detection of originated vendor package. But as I can see, there is no getFileName method. Is this due to some technical limitation or can that be added? Thank you
cc @iluuu1994
The text was updated successfully, but these errors were encountered: