class EnsurePropertyMorphable implements ValidationRule

Rejects the discriminator of a property-morphable node whose morph Fill could not resolve.

The compiler adds it only to such nodes, reusing Fill's resolution instead of calling morph() again.

Methods

void
validate(string $attribute, mixed $value, Closure $fail)

Fail the discriminator of an unresolved morph.

Details

at line 20
void validate(string $attribute, mixed $value, Closure $fail)

Fail the discriminator of an unresolved morph.

Parameters

string $attribute
mixed $value
Closure $fail

Return Value

void