Ratchet does not work with guzzle/http 3.6

Getting this error
Object of class Guzzle\Http\Message\Header could not be converted to int