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

CheckType
getCheckName()

No description

MemberKind
memberKind()

No description

string|null
describeMethodMismatch(string $methodEntityId, mixed $reflMethod, PHPMethod $stubMethod, string $phpVersion)

No description

Details

testMethodDescriberIsReachedWithTypedArguments()

No description

protected CheckType getCheckName()

No description

Return Value

CheckType

protected MemberKind memberKind()

No description

Return Value

MemberKind

string|null describeMethodMismatch(string $methodEntityId, mixed $reflMethod, PHPMethod $stubMethod, string $phpVersion)

No description

Parameters

string $methodEntityId
mixed $reflMethod
PHPMethod $stubMethod
string $phpVersion

Return Value

string|null