box-project / box

📦🚀 Fast, zero config application bundler with PHARs.
https://box-project.github.io/box
MIT License
1.12k stars 101 forks source link

PHP 8.1 support #1259

Closed llaville closed 9 months ago

llaville commented 9 months ago

Hello

Is there a good reason why you dropped support of PHP 8.1 since BOX 4.6.0 ?

https://www.php.net/supported-versions.php

Thanks in advance for your answer

theofidry commented 9 months ago

A reason yes, whether it's good or not is debatable I suppose 😅

theofidry commented 9 months ago

I hope that answers the question and that it's not too big of a problem for you

llaville commented 9 months ago

@theofidry You've probably forgot another context, that still require a specific version such as PHP 8.1, because we want to distribute a based PHP 8.1 version of a project compiled. See https://github.com/overtrue/phplint/blob/9.1/.github/workflows/release.yml

I used PHP 8.1, and of course Box 4.5 to build the PHAR version of PHPLint that will be attached to the release notes

theofidry commented 9 months ago

because we want to distribute a based PHP 8.1 version of a project compiled.

This is what platform.php is for in composer.json though? For example I build the requirement checker, which is a PHP 7.2 application, with PHP 8.2.

llaville commented 9 months ago

Ok. Forgot this alternative. Thanks to remember me !