src/Finder.php
public function validateExtensionName(string $name): string
    {
        if (\in_array($name, $this->reserved)) {
            throw new RuntimeException("Unable to register reserved name [{$name}] as extension.");
        }

        return $name;
    }
public function validateExtensionName(string $name): string
    {
        if (\in_array($name, $this->reserved)) {
            throw new RuntimeException("Unable to register reserved name [{$name}] as extension.");
        }

        return $name;
    }
Validate extension name.

@param  string  $name

@throws \RuntimeException

@return string