Page 1 of 1

ReflectionClass::getConstants()

PostPosted: January 7th, 2013, 10:03 am
by pospa
When I call:
Code: Select all
$r = new ReflectionClass($this);
$r->getConstants();

on any object, it will end up like
Error: Call to undefined method: ReflectionClass::getConstants() in xxxxx

I can see, that there is getConstants method defined in PHP.Library.SPL.ReflectionClass, but in runtime it seem to be inaccessible.

Re: ReflectionClass::getConstants()

PostPosted: January 7th, 2013, 10:08 am
by Jakub Misek
I see, there is missing
Code: Select all
[ImplementsMethod]
attribute above the
Code: Select all
public virtual object getConstants(ScriptContext context)
line.

Will be fixed in public repo.

Thanks!