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

Breadcrumb

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

function InvalidArgumentException::fromAbstractClass

@phpstan-param ReflectionClass<T> $reflectionClass

@template T of object

1 call to InvalidArgumentException::fromAbstractClass()
Instantiator::getReflectionClass in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
@phpstan-param class-string<T> $className

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php, line 37

Class

InvalidArgumentException
Exception for invalid arguments provided to the instantiator

Namespace

Doctrine\Instantiator\Exception

Code

public static function fromAbstractClass(ReflectionClass $reflectionClass) : self {
    return new self(sprintf('The provided class "%s" is abstract, and cannot be instantiated', $reflectionClass->getName()));
}

API Navigation

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