final class SyntaxException
    extends RuntimeException
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

A source file the PHP parser could not read.

Properties§

public string $path

Methods§

public function __construct(
    public string $path,
    string $reason,
    Throwable|null $previous = null,
)

Parameters

$pathstringThe file that failed to parse
$reasonstringThe parser's explanation
$previousThrowable|nullThe parser error being wrapped
Calls 2
  • static-call RuntimeException::__construct() line 27
  • function-call sprintf line 27

Test cases 5§

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

Dedicated tests 2
Other tests reaching this symbol 3

Relations§

Instantiated in 2