Documentation

UnexpectedValueTypeException extends BaseUnexpectedValueException
in package

FinalYes

Table of Contents

Methods

__construct()  : mixed
getInfosOnValue()  : array{wide_type: string, value: ?string, type: string}
getStringDesc()  : string

Methods

__construct()

public __construct(string $expectedType, mixed $actualValue, int $code[, string $messageFmt = 'Expected value of type %1$s, got: %2$s.' ][, Throwable|null $previous = null ]) : mixed
Parameters
$expectedType : string
$actualValue : mixed
$code : int
$messageFmt : string = 'Expected value of type %1$s, got: %2$s.'
$previous : Throwable|null = null

getInfosOnValue()

protected getInfosOnValue(mixed $value) : array{wide_type: string, value: ?string, type: string}
Parameters
$value : mixed
Return values
array{wide_type: string, value: ?string, type: string}
On this page

Search results