Skip to content

ForwardingTargetMismatch

Rasuvaeff\Understudy\Exception\ForwardingTargetMismatch

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: InvalidArgumentException

Implements: Stringable, Throwable, Exception\UnderstudyError

The instance offered as a forwarding target does not satisfy what the double stands in for.

Methods

understudyTarget()

php
static understudyTarget(non-empty-string $label): self

missingContract()

php
static missingContract(
    non-empty-string $label,
    class-string $contract,
    string $given,
): self