kriswallsmith/Buzz

RFC Constructor argument order

Nyholm opened this issue · 2 comments

Currently we have:
AbstractClient::__construct(array $options, ResponseFactoryInterface $factory)

The second argument has recently been made mandatory. I think it would make sense to flit the order. Since the option array is not always used.

I propose:
AbstractClient::__construct(ResponseFactoryInterface $factory, array $options = [])

Curiosity: which RFC?

I just meant "Request For Change"