src/Viserio/Component/WebServer/WebServer.php
public static function stop(string $pidFile = null): void
    {
        $pidFile = $pidFile ?? self::getDefaultPidFile();

        if (! \file_exists($pidFile)) {
            throw new RuntimeException('No web server is listening.');
        }

        \unlink($pidFile);
    }
public static function stop(string $pidFile = null): void
    {
        $pidFile = $pidFile ?? self::getDefaultPidFile();

        if (! \file_exists($pidFile)) {
            throw new RuntimeException('No web server is listening.');
        }

        \unlink($pidFile);
    }
Stop a running web server.

@param null|string $pidFile

@return void