ContextOwnershipViolation
Rasuvaeff\Understudy\Exception\ContextOwnershipViolation
Class — Package: rasuvaeff/understudy — Source — Version: v1.1.0-1-g6ed023f
Extends: LogicException
Implements: Throwable, Stringable, Exception\UnderstudyError
Configuration and verification belong to the context that created a double.
Normal calls may cross Fiber boundaries, but mutating another context would make lifecycle verification race with work owned elsewhere.
Methods
forDouble()
php
static forDouble(): selfBuilds the error for using a double from another runtime context.
A double was configured or verified from a context other than the one that created it — another Fiber, or outside the scope it was built in.