Skip to content

NoDefaultValue

Rasuvaeff\Understudy\Exception\NoDefaultValue

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: RuntimeException

Implements: Throwable, Stringable, Exception\UnderstudyError

A loose understudy had to answer a call, but the declared return type has no safe default. Understudy never invents one by calling an arbitrary constructor and never hands back an uninitialised object.

Methods

forReturnType()

php
static forReturnType(
    non-empty-string $label,
    non-empty-string $method,
    string $type,
): self