You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReflectionConstant in PHP 8.4 does not offer declaration file information #15723
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
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
Activity
iluuu1994 commentedon Sep 3, 2024
Hi @janedbal. Yes, we don't currently have this information available at runtime. You can leave this open as a feature request.
DanielEScherzer commentedon Sep 12, 2024
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
iluuu1994 commentedon Sep 12, 2024
That doesn't sound right, RC1 is scheduled for September 26th. I think they are only tagged 2 days prior.
DanielEScherzer commentedon Sep 12, 2024
Oh, I guess I misread the last tag - good to know that this can still be included
phpGH-15723: add `ReflectionConstant::getFileName()`
Add ReflectionConstant::getFileName()