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

Breadcrumb

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

function CodeUnit::reflectorForFunction

@psalm-param callable-string $functionName

Throws

ReflectionException

1 call to CodeUnit::reflectorForFunction()
CodeUnit::forFunction in vendor/sebastian/code-unit/src/CodeUnit.php
@psalm-param callable-string $functionName

File

vendor/sebastian/code-unit/src/CodeUnit.php, line 464

Class

CodeUnit
@psalm-immutable

Namespace

SebastianBergmann\CodeUnit

Code

private static function reflectorForFunction(string $functionName) : ReflectionFunction {
    try {
        return new ReflectionFunction($functionName);
        // @codeCoverageIgnoreStart
    } catch (\ReflectionException $e) {
        throw new ReflectionException($e->getMessage(), $e->getCode(), $e);
    }
    // @codeCoverageIgnoreEnd
}

API Navigation

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