function Mapper::isUserDefinedFunction
Throws
1 call to Mapper::isUserDefinedFunction()
- Mapper::stringToCodeUnits in vendor/
sebastian/ code-unit/ src/ Mapper.php
File
-
vendor/
sebastian/ code-unit/ src/ Mapper.php, line 145
Class
Namespace
SebastianBergmann\CodeUnitCode
private function isUserDefinedFunction(string $functionName) : bool {
if (!function_exists($functionName)) {
return false;
}
try {
return (new ReflectionFunction($functionName))->isUserDefined();
// @codeCoverageIgnoreStart
} catch (\ReflectionException $e) {
throw new ReflectionException($e->getMessage(), $e->getCode(), $e);
}
// @codeCoverageIgnoreEnd
}