public function resizeTable(int $maxSize = null) {
        if ($maxSize !== null) {
            $this->maxSize = $maxSize;
        }

        while ($this->size > $this->maxSize) {
            list($name, $value) = \array_pop($this->headers);
            $this->size -= 32 + \strlen($name) + \strlen($value);
        }
    }
public function resizeTable(int $maxSize = null) {
        if ($maxSize !== null) {
            $this->maxSize = $maxSize;
        }

        while ($this->size > $this->maxSize) {
            list($name, $value) = \array_pop($this->headers);
            $this->size -= 32 + \strlen($name) + \strlen($value);
        }
    }
public function resizeTable ( int $ maxSize = null ) { if ( $ maxSize !== null ) { $ this -> maxSize = $ maxSize ; } while ( $ this -> size > $ this -> maxSize ) { list ( $ name , $ value ) = \ array_pop ( $ this -> headers ) ; $ this -> size -= 32 + \ strlen ( $ name ) + \ strlen ( $ value ) ; } }
Resizes the table to the given max size, removing old entries as per section 4.4 if necessary.

@param int|null $maxSize
Resizes the table to the given max size removing old entries as per section 4 . 4 if necessary .