googleads / google-ads-php

Google Ads API Client Library for PHP
https://developers.google.com/google-ads/api/docs/client-libs/php
Apache License 2.0
280 stars 260 forks source link

phpunit/phpunit[7.5.0, ..., 7.5.20] require php ^7.1 -> your php version (8.1.25) does not satisfy that requirement. #988

Closed Enkirch closed 7 months ago

Enkirch commented 7 months ago

Hi, when I clone the whole thing here and do "composer install", I get the following message.

phpunit/phpunit[7.5.0, ..., 7.5.20] require php ^7.1 -> your php version (8.1.25) does not satisfy that requirement.

Why is PHP 8 not ok now, since the whole thing should only run on PHP 8.1 from March?

fiboknacky commented 7 months ago

You probably need to upgrade your phpunit. From the error message, it looks like those versions require ^7.1, which caps the PHP version to only 7.x. Later versions of phpunit seem to specify the same as this library, e.g., >=8.0, which allows any version larger than 8.0, for example.