The Merge methods API is now official (#562)
The Merge methods API is now official (#562)

* The Merge methods API is now official

see: https://developer.github.com/changes/2017-04-07-end-merge-methods-api-preview/
this removes the apiVersion (that wasn't being used anyway..)
also adds support for rebase mergeMethod per https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button

Since this previously looked for the value to be bool, this is a breaking change

* retain weird bool support for this value

* let github throw errors instead

* add back in $apiVersion to make it easier to handle preview versions in the future

there are no preview versions now so checking against an empty array
also had to fix the acceptHeaderValue to correctly use the variable

* throw invalidargumentexception when trying to use invalid merge method

* add missing use

KnpLabs/php-github-api,Soullivaneuh/php-github-api,acrobat/php-github-api,aaronbloomfield/github-api-tools