public static function version(string $expression = self::VERSION_WITHOUT_BUG_FIX): string
    {
        if (static::is(static::LARAVEL)) {
            return static::extractVersion(constant('Illuminate\Foundation\Application::VERSION'), $expression);
        }

        /** @var \Laravel\Lumen\Application $app */
        $app = call_user_func('Laravel\Lumen\Application::getInstance');

        if ($version = static::extractVersion($app->version(), $expression)) {
            return $version;
        }

        throw new LogicException('No any version found.');
    }