> > I think that would require an RFC. > > To clarify, you're proposing to replace this: > > count((new ReflectionClass(Beep::class))->getAttributes(Ignore::class)) == > true > > with > > (new ReflectionClass(Beep::class))->hasAttribute(Ignore::class) > > Right? That doesn't seem like a huge improvement. > > --Larry Garfield
Actually, if ((new ReflectionClass(Beep::class))->getAttributes(Ignore::class)) would work as well, so basically: $rc->hasAttribute(Ignore::class) === (bool) $rc->getAttributes(Ignore::class); - Benjamin >