private function onEntitySizeWarning(Client $client, array $parseResult) { $id = $parseResult["id"]; $promisor = $client->bodyPromisors[$id]; $client->bodyPromisors[$id] = new Deferred(); $promisor->fail(new ClientSizeException()); }