MemberFlagDispatchTest
class MemberFlagDispatchTest extends TestCase (View source)
How AbstractMemberFlagCheck reaches a leaf's comparison now that the two member-kind subclasses are gone.
The comparison used to be an abstract method on an intermediate class, so "the leaf supplies a comparison" was enforced at compile time. It is now an interface found by instanceof, which moves two wiring errors from impossible to runtime: implementing neither describer, and implementing one that disagrees with memberKind(). Both are covered here, because that is the cost this design carries and it should fail loudly rather than silently compare nothing.
Methods
No description
No description
No description
No description
Details
testMethodDescriberIsReachedWithTypedArguments()
No description
protected CheckType
getCheckName()
No description
protected MemberKind
memberKind()
No description
string|null
describeMethodMismatch(string $methodEntityId, mixed $reflMethod, PHPMethod $stubMethod, string $phpVersion)
No description