src/Facade/FacadeTrait.php
public static function stubGlobal(
        string $function,
        string $namespace
    ): StubVerifier {
        $container = self::$globals::$container;

        return $container->stubVerifierFactory
            ->createGlobal($function, $namespace);
    }
public static function stubGlobal(
        string $function,
        string $namespace
    ): StubVerifier {
        $container = self::$globals::$container;

        return $container->stubVerifierFactory
            ->createGlobal($function, $namespace);
    }
public static function stubGlobal ( string $ function , string $ namespace ) : StubVerifier { $ container = self :: $ globals :: $ container ; return $ container -> stubVerifierFactory -> createGlobal ( $ function , $ namespace ) ; }
Create a stub of a function in the global namespace, and declare it as a
function in another namespace.

Stubs created via this function do not forward to the original function
by default. This differs from stubs created by other methods.

@param string $function  The name of the function in the global namespace.
@param string $namespace The namespace in which to create the new function.

@return StubVerifier The new stub.
Create a stub of a function in the global namespace and declare it as a function in another namespace .