Not compatible with 9.10.0 of m4tthumphrey/php-gitlab-api
gogowitsch opened this issue · 2 comments
gogowitsch commented
Problem: Uncaught TypeError: Argument 1 passed to Gitlab\Client::__construct() must be an instance of Gitlab\HttpClient\Builder, string given
around line 40 of packages.php.
Solution:
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
- change
$client = new Client($confs['endpoint']);
to$client = Client::create($confs['endpoint']);
- Around line 184, always call
->all
instead of->accessible
, as the method has been removed.
fonata commented
Nevermind, I just realized you already updated this code. All is good & /close
lemoinem commented
@fonata Thanks for opening (and closing ;) ) an issue and Thanks for your continued use of gitlab-composer. As you may have notice, this project is receiving very limited support.
In particular, in the future, if you do know what code changes are necessary, I would encourage you to submit a PR instead of creating an issue.