function UnexpectedValueException::fromUncleanUnSerialization
@phpstan-param ReflectionClass<T> $reflectionClass
@template T of object
1 call to UnexpectedValueException::fromUncleanUnSerialization()
- Instantiator::checkIfUnSerializationIsSupported in vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php - @phpstan-param ReflectionClass<T> $reflectionClass
File
-
vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Exception/ UnexpectedValueException.php, line 42
Class
- UnexpectedValueException
- Exception for given parameters causing invalid/unexpected state on instantiation
Namespace
Doctrine\Instantiator\ExceptionCode
public static function fromUncleanUnSerialization(ReflectionClass $reflectionClass, string $errorString, int $errorCode, string $errorFile, int $errorLine) : self {
return new self(sprintf('Could not produce an instance of "%s" via un-serialization, since an error was triggered ' . 'in file "%s" at line "%d"', $reflectionClass->getName(), $errorFile, $errorLine), 0, new Exception($errorString, $errorCode));
}