Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnexpectedValueException.php

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\Exception

Code

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal