final class ResolutionException
    extends RuntimeException
Public API: explicitly declared with @visibility public.

Parsed source contains invalid names, lexical scope, or expression constraints.

Inspecting a failed name resolutiondoctest
(new \Deriver\Exception\ResolutionException('Duplicate alias', 'app.php', 3))->path // => 'app.php'

Properties§

public string $path
public int $sourceLine = 1

Methods§

public function __construct(
    string $message,
    public string $path,
    public int $sourceLine = 1,
    Throwable|null $previous = null,
)

Parameters

$messagestringResolution diagnostic
$pathstringSource containing the invalid construct
$sourceLineintOne-based source line
$previousThrowable|nullOriginal diagnostic
Calls 1
  • static-call RuntimeException::__construct() line 26

Test cases 180§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 179

Relations§

Instantiated in 1