laravel-commerce icon indicating copy to clipboard operation
laravel-commerce copied to clipboard

Cannot install on PHP 8.2

Open hctorres02 opened this issue 1 year ago • 0 comments

I tried to install the package on PHP version 8.2, but composer detected that the version does not meet the package specifications.

$ composer require yiddishe-kop/laravel-commerce
Cannot use yiddishe-kop/laravel-commerce\'s latest version v1.0.0 as it requires php ^7.4 which is not satisfied by your platform.

In PackageDiscoveryTrait.php line 317:
                                                                                                                                   
  Package yiddishe-kop/laravel-commerce has requirements incompatible with your PHP version, PHP extensions and Composer version:  
    - yiddishe-kop/laravel-commerce v1.0.0 requires php ^7.4 which does not match your installed version 8.2.6.

The problem, I believe is only in the version contained in Packagist and not in the repository code.

Below is a screenshot of Laravel on Packagist. It is possible to notice that requires a version equal to or greater than 8.1 image

I made the same clipping for the package, but it is possible to notice that the required version is equal to or greater than 7.4, but immediately lower than 8.0 image

hctorres02 avatar May 20 '23 00:05 hctorres02