src/main/php/NewCallable.php
private static function forkCallMapClass(\ReflectionFunction $function): \ReflectionClass
    {
        try {
            $compile = self::$compile;
            $compile(self::createProxyCode($function));
        } catch (\ParseError $pe) {
            throw new ProxyCreationFailure(
                    'Failure while creating callable CallMap instance of '
                    . $function->getName() . '(): ' . $pe->getMessage(),
                    $pe
            );
        }

        return new \ReflectionClass($function->getName() . 'CallMapProxy');
    }
private static function forkCallMapClass(\ReflectionFunction $function): \ReflectionClass
    {
        try {
            $compile = self::$compile;
            $compile(self::createProxyCode($function));
        } catch (\ParseError $pe) {
            throw new ProxyCreationFailure(
                    'Failure while creating callable CallMap instance of '
                    . $function->getName() . '(): ' . $pe->getMessage(),
                    $pe
            );
        }

        return new \ReflectionClass($function->getName() . 'CallMapProxy');
    }
private static function forkCallMapClass ( \ ReflectionFunction $ function ) : \ ReflectionClass { try { $ compile = self :: $ compile ; $ compile ( self :: createProxyCode ( $ function ) ) ; } catch ( \ ParseError $ pe ) { throw new ProxyCreationFailure ( 'Failure while creating callable CallMap instance of ' . $ function -> getName ( ) . '(): ' . $ pe -> getMessage ( ) , $ pe ) ; } return new \ ReflectionClass ( $ function -> getName ( ) . 'CallMapProxy' ) ; }
creates a new class from the given function which uses the CallMap trait

@param   \ReflectionFunction  $function
@return  \ReflectionClass
@throws  ProxyCreationFailure
creates a new class from the given function which uses the CallMap trait