private function ensureServiceProvider(string $providerClass)
    {
        if (!is_subclass_of($providerClass, AbstractServiceProvider::class)) {
            throw new InvalidArgumentException(
                sprintf('Class "%s" must be a subclass of "%s".', $providerClass, AbstractServiceProvider::class)
            );
        }
    }
private function ensureServiceProvider(string $providerClass)
    {
        if (!is_subclass_of($providerClass, AbstractServiceProvider::class)) {
            throw new InvalidArgumentException(
                sprintf('Class "%s" must be a subclass of "%s".', $providerClass, AbstractServiceProvider::class)
            );
        }
    }
private function ensureServiceProvider ( string $ providerClass ) { if ( ! is_subclass_of ( $ providerClass , AbstractServiceProvider :: class ) ) { throw new InvalidArgumentException ( sprintf ( 'Class "%s" must be a subclass of "%s".' , $ providerClass , AbstractServiceProvider :: class ) ) ; } }
Ensures service provider implements contract.

@param string $providerClass
@throws InvalidArgumentException
Ensures service provider implements contract .