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
I would like to propose adding ReflectionConstant::getExtensionName(): false|string and ReflectionConstant::getExtension(): ?ReflectionExtension as in ReflectionClass and ReflectionFunction.
Currently to get constant's extension one has to parse get_defined_constants(categorize: true).
this is proposing the same method twice, with different signatures?
Ooops, that's a typo. I meant ReflectionConstant::getExtensionName(): false|string and ReflectionConstant::getExtension(): ?ReflectionExtension. Fixed in the first message as well.
Activity
DanielEScherzer commentedon Oct 25, 2024
Makes sense, and should be relatively easy given that we already store the module number in the constant flags. But I am confused by
this is proposing the same method twice, with different signatures?
vudaltsov commentedon Oct 25, 2024
Ooops, that's a typo. I meant
ReflectionConstant::getExtensionName(): false|stringandReflectionConstant::getExtension(): ?ReflectionExtension. Fixed in the first message as well.