I have a class with public, public static, private and private static properties, and I'm trying to get only public. For some reason, I just can't get the filter, I tried
ReflectionProperty::IS_PUBLIC & ~ReflectionProperty::IS_STATIC
or
ReflectionProperty::IS_PUBLIC & (ReflectionProperty::IS_PUBLIC | ~ReflectionProperty::IS_STATIC)
among other things, but I also get static public or private static.
source
share