Skip to content

AmbiguousDefaultFactory ​

Rasuvaeff\Understudy\Exception\AmbiguousDefaultFactory

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

Extends: LogicException

Implements: Throwable, Stringable, Exception\UnderstudyError

Two registered default factories are equally close to the requested type.

Methods ​

between() ​

php
static between(class-string $requested, non-empty-list<class-string> $candidates): self

Builds the error for equally close default factories.