Documentation

NotNormalizableValueException extends UnexpectedValueException
in package

UnexpectedValueException.

Tags
author

Christian Flothmann christian.flothmann@sensiolabs.de

Table of Contents

Properties

$currentType  : mixed
$expectedTypes  : mixed
$path  : mixed
$useMessageForUser  : mixed

Methods

canUseMessageForUser()  : bool|null
createForUnexpectedDataType()  : self
getCurrentType()  : string|null
getExpectedTypes()  : array<string|int, string>|null
getPath()  : string|null

Properties

Methods

createForUnexpectedDataType()

public static createForUnexpectedDataType(string $message, mixed $data, array<string|int, mixed> $expectedTypes[, string $path = null ][, bool $useMessageForUser = false ][, int $code = 0 ][, Throwable $previous = null ]) : self
Parameters
$message : string
$data : mixed
$expectedTypes : array<string|int, mixed>
$path : string = null
$useMessageForUser : bool = false

If the message passed to this exception is something that can be shown safely to your user. In other words, avoid catching other exceptions and passing their message directly to this class.

$code : int = 0
$previous : Throwable = null
Return values
self

        
On this page

Search results