static function replaceHeaders(array $newHeaders): bool
    {
        if (!headers_sent()) {
            header_remove();

            foreach ($newHeaders as $header) {
                header($header);
            }

            return true;
        }

        return false;
    }
static function replaceHeaders(array $newHeaders): bool
    {
        if (!headers_sent()) {
            header_remove();

            foreach ($newHeaders as $header) {
                header($header);
            }

            return true;
        }

        return false;
    }
static function replaceHeaders ( array $ newHeaders ) : bool { if ( ! headers_sent ( ) ) { header_remove ( ) ; foreach ( $ newHeaders as $ header ) { header ( $ header ) ; } return true ; } return false ; }
Attempt to replace headers
Attempt to replace headers