Skip to content

InvalidDefaultValue ​

Rasuvaeff\Understudy\Exception\InvalidDefaultValue

Class — Package: rasuvaeff/understudy — Source — Version: v1.1.0-1-g6ed023f

Extends: RuntimeException

Implements: Throwable, Stringable, Exception\UnderstudyError

A registered default factory produced a value the contract cannot hold.

Methods ​

ofWrongType() ​

php
static ofWrongType(class-string $requested, string $produced): self

Builds the error for a factory value with the wrong type.