llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
372 stars 20 forks source link

Add platform in composer.json #319

Closed remicollet closed 2 years ago

remicollet commented 2 years ago

So that "composer install" generate a usable tree on PHP 7.4, 8.0 or 8.1, whatever is used version

llaville commented 2 years ago

Can you explain me why you want to have this configuration on v6.0.x ?

remicollet commented 2 years ago

1/ generate tree with PHP 8.0 2/ try to use it with 7.4

$ phpcompatinfo --version
Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.27.

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.27. in /builddir/build/BUILDROOT/php-bartlett-PHP-CompatInfo-6.0.3-1.fc33.remi.x86_64/usr/share/php-bartlett-PHP-CompatInfo/vendor/composer/platform_check.php on line 24

Most projects do this way:

Else you won't be able to produce any usable phar

llaville commented 2 years ago

Else you won't be able to produce any usable phar

👍

llaville commented 2 years ago

@remicollet FYI master, 6.1 branches were just updated too !