captainhookphp / captainhook-phar

Install the CaptainHook PHAR via Composer
MIT License
5 stars 2 forks source link

Failing composer platform check in version 5.23.4 and higher #7

Open norgeindian opened 2 weeks ago

norgeindian commented 2 weeks ago

As soon as I install captainhook/captainhook-phar in version 5.23.4 or 5.23.5 and run vendor/bin/captainhook -f install, I get the following error:

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.30. in phar:///var/www/html/vendor/bin/captainhook/vendor/composer/platform_check.php on line 24

We are running a project inside docker, the mentioned PHP version 8.1.30 is correct, but I don't see any dependency in the whole project on PHP 8.2. As soon as I downgrade to 5.23.3, the error is gone and the configuration is properly set up. Any idea, what might be wrong here?

sebastianfeldmann commented 2 weeks ago

I think the PHAR builder Box requires a minimum version of 8.2. I will check if it can be manipulated somehow to run under some older PHP versions.

sebastianfeldmann commented 2 weeks ago

I just released 5.23.6 build on php 8.0 with an older Box version. Please check if that works for you again.