Skip to content

BypassUnavailable ​

Rasuvaeff\Understudy\Exception\BypassUnavailable

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

Extends: LogicException

Implements: Throwable, Stringable, Exception\UnderstudyError

bypassFinals() cannot do what was asked of it.

Methods ​

alreadyLoaded() ​

php
static alreadyLoaded(class-string $class): self

Builds the error for a class loaded before bypass could be installed.

notAClass() ​

php
static notAClass(class-string $class, string $kind): self

Builds the error for a target that is not a class.

foreignWrapper() ​

php
static foreignWrapper(string $owner): self

Builds the error for an already-installed user-space file wrapper.

Something else owns file://; replacing it would silently disable whatever it does, whether or not it transforms PHP source.