Documentation

LintError
in package
implements JsonSerializable, Stringable

Tags
phpstan-import-type

SerializedPosition from Position

phpstan-type

SerializedLintError array{ key: string, message: string, start: SerializedPosition, end: SerializedPosition }

Table of Contents

Interfaces

JsonSerializable
Stringable

Properties

$end  : Position
$key  : LintErrorKey
$message  : string
$start  : Position

Methods

__construct()  : mixed
Constructor for the LintError class.
__toString()  : string
Convert the error to a string representation.
fromTokenizerContext()  : self
getEnd()  : Position
Get the end position of the lint error.
getKey()  : LintErrorKey
Get the key of the lint error.
getMessage()  : string
Get the message of the lint error.
getStart()  : Position
Get the start position of the lint error.
jsonSerialize()  : SerializedLintError
Serialize the error to JSON.

Properties

Methods

__toString()

Convert the error to a string representation.

public __toString() : string
Return values
string

getMessage()

Get the message of the lint error.

public getMessage() : string
Return values
string

jsonSerialize()

Serialize the error to JSON.

public jsonSerialize() : SerializedLintError
Return values
SerializedLintError

        
On this page

Search results