PHPCSUtils 1.1.0

UnexpectedTokenType extends RuntimeException
in package

FinalYes

Exception for when a stack pointer is passed which is not of the expected token type.

Tags
since
1.1.0

Table of Contents

Methods

create()  : UnexpectedTokenType
Create a new UnexpectedTokenType exception with a standardized text.

Methods

create()

Create a new UnexpectedTokenType exception with a standardized text.

public static create(int $position, string $name, string $acceptedTypes, string $receivedType) : UnexpectedTokenType
Parameters
$position : int

The argument position in the function signature. 1-based.

$name : string

The argument name in the function signature.

$acceptedTypes : string

Phrase listing the accepted token type(s).

$receivedType : string

The received token type.

Return values
UnexpectedTokenType

        
On this page

Search results