Documentation

UnexpectedValueException extends UnexpectedValueException
in package
implements ExceptionInterface

Exception for given parameters causing invalid/unexpected state on instantiation

Interfaces, Classes, Traits and Enums

ExceptionInterface
Base exception marker interface for the instantiator component

Table of Contents

fromSerializationTriggeredException()  : self
fromUncleanUnSerialization()  : self

Methods

fromSerializationTriggeredException()

public static fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception) : self
Parameters
$reflectionClass : ReflectionClass
$exception : Exception
Tags
phpstan-param

ReflectionClass<T> $reflectionClass

template

T of object

Return values
self

fromUncleanUnSerialization()

public static fromUncleanUnSerialization(ReflectionClass $reflectionClass, string $errorString, int $errorCode, string $errorFile, int $errorLine) : self
Parameters
$reflectionClass : ReflectionClass
$errorString : string
$errorCode : int
$errorFile : string
$errorLine : int
Tags
phpstan-param

ReflectionClass<T> $reflectionClass

template

T of object

Return values
self

Search results