DescribesPropertyMismatch
interface DescribesPropertyMismatch (View source)
Implemented by a member-flag check that compares a per-property attribute.
The property-side counterpart to {\StubTests\Framework\Validator\Contracts\DescribesMethodMismatch}; see that interface for why the concrete parameter types are declared here rather than on AbstractMemberFlagCheck.
Methods
string|null
describePropertyMismatch(string $propertyEntityId, PHPProperty $reflProperty, PHPProperty $stubProperty, string $phpVersion)
Compare an attribute on the reflection and stub property.
Details
string|null
describePropertyMismatch(string $propertyEntityId, PHPProperty $reflProperty, PHPProperty $stubProperty, string $phpVersion)
Compare an attribute on the reflection and stub property.
Return a descriptive failure message if there is a mismatch, or null if they match.