InvalidDefaultValue
Rasuvaeff\Understudy\Exception\InvalidDefaultValue
Class — Package: rasuvaeff/understudy — Source — Version: v1.2.3-1-g736abde
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): selfBuilds the error for a factory value with the wrong type.