PHPParseParameterError
Less than 1 minute
PHPParseParameterError
Exception thrown when a PHP parameter parse error occurs.
class PHPParseParameterError extends \Hazaar\Parser\Exception\PHPParserErrorThis exception is used to indicate that a specific parameter type could not be parsed during PHP parsing. The problematic token is provided for diagnostic purposes. Optionally, a previous exception and error code can be included for chaining and error handling.
Properties
token
public Token $tokenMethods
__construct
Constructs a new PHPParseParameterError exception.
public __construct(Token $token, ?\Throwable $previous, int $code = 500): voidParameters
| Parameter | Type | Description |
|---|---|---|
$token | Token | the token or string that caused the error |
$previous | \Throwable | optional previous exception for chaining |
$code | int | the error code (default 500) |
__toString
Returns a string representation of the parameter parse error, including the problematic token and previous exception if present.
public __toString(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000