class PhpError

Php error base class

Methods

static array
toArray(Throwable|array $error)

Convert error to array

static string
getJsonError()

Get JSON error message

static string
getErrorTypeText(integer $type)

Get error type

static mixed
getPosixError()

Get posix error

Details

at line 25
static array toArray(Throwable|array $error)

Convert error to array

Parameters

Throwable|array $error

Return Value

array

at line 56
static string getJsonError()

Get JSON error message

Return Value

string

at line 91
static string getErrorTypeText(integer $type)

Get error type

Parameters

integer $type

Return Value

string

at line 109
static mixed getPosixError()

Get posix error

Return Value

mixed