function CodeUnit::reflectorForFunction
@psalm-param callable-string $functionName
Throws
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\CodeUnitCode
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
}