We currently have:
Roave\BetterReflection\Reflection\ReflectionClass#getMethod(): ReflectionMethod|null
Roave\BetterReflection\Reflection\ReflectionClass#hasMethod(): bool
This API is kinda dumb-ish, and we kinda went back on it in 6.0.0, IMO: an exception being thrown was probably a much nicer API here.
Either we make getMethod() throw, or we remove hasMethod() here. Relying on getMethod() throwing is not so bad here, but either way could work.
We currently have:
Roave\BetterReflection\Reflection\ReflectionClass#getMethod(): ReflectionMethod|nullRoave\BetterReflection\Reflection\ReflectionClass#hasMethod(): boolThis API is kinda dumb-ish, and we kinda went back on it in
6.0.0, IMO: an exception being thrown was probably a much nicer API here.Either we make
getMethod()throw, or we removehasMethod()here. Relying ongetMethod()throwing is not so bad here, but either way could work.