parsisolution / gateway

Iranian Payment Gateways
MIT License
19 stars 7 forks source link

Carbon library conflict on Laravel 5.8 #38

Closed hsharghi closed 5 years ago

hsharghi commented 5 years ago

نمیدونم چرا هنوز در این پکیج داره از Carbon ~1.20 استفاده میشه؟ باعث میشه با خیلی از پکیج های دیگه و حتی خود لاراول 5.8 که از Carbon ^2.0 استفاده میکنه تداخل بده.

برای تست این مشکل

$ laravel new gateway-test
$ cd gateway-test
$ php artisan --version 
    Laravel Framework 5.8.17
$ composer require parsisolution/gateway

نتیجه خطای زیر است

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install parsisolution/gateway v1.3.8
    - Conclusion: don't install parsisolution/gateway v1.3.7
    - Conclusion: don't install parsisolution/gateway v1.3.6
    - Conclusion: don't install parsisolution/gateway v1.3.5
    - Conclusion: don't install parsisolution/gateway v1.3.4
    - Conclusion: don't install parsisolution/gateway v1.3.3
    - Conclusion: don't install parsisolution/gateway v1.3.2
    - Conclusion: don't install parsisolution/gateway v1.3.1
    - Conclusion: remove nesbot/carbon 2.18.0
    - Installation request for parsisolution/gateway ^1.3 -> satisfiable by parsisolution/gateway[v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7, v1.3.8].
    - Conclusion: don't install nesbot/carbon 2.18.0
    - parsisolution/gateway v1.3.0 requires nesbot/carbon ~1.20 -> satisfiable by nesbot/carbon[1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.24.1, 1.24.2, 1.25.0, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.30.0, 1.31.0, 1.31.1, 1.32.0, 1.33.0, 1.34.0, 1.34.1, 1.34.2, 1.34.3, 1.34.4, 1.35.0, 1.35.1, 1.36.0, 1.36.1, 1.36.2, 1.37.0, 1.37.1].
    - Can only install one of: nesbot/carbon[1.26.3, 2.18.0].
    - Can only install one of: nesbot/carbon[1.26.4, 2.18.0].
    - Can only install one of: nesbot/carbon[1.27.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.28.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.29.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.29.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.29.2, 2.18.0].
    - Can only install one of: nesbot/carbon[1.30.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.31.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.31.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.32.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.33.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.34.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.34.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.34.2, 2.18.0].
    - Can only install one of: nesbot/carbon[1.34.3, 2.18.0].
    - Can only install one of: nesbot/carbon[1.34.4, 2.18.0].
    - Can only install one of: nesbot/carbon[1.35.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.35.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.36.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.36.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.36.2, 2.18.0].
    - Can only install one of: nesbot/carbon[1.37.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.37.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.20.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.21.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.22.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.22.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.23.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.24.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.24.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.24.2, 2.18.0].
    - Can only install one of: nesbot/carbon[1.25.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.26.0, 2.18.0].
    - Can only install one of: nesbot/carbon[1.26.1, 2.18.0].
    - Can only install one of: nesbot/carbon[1.26.2, 2.18.0].
    - Installation request for nesbot/carbon (locked at 2.18.0) -> satisfiable by nesbot/carbon[2.18.0].

Installation failed, reverting ./composer.json to its original content.

آیا امکان استفاده از پکیج Carbon ^2.0 در این پکیج وجود ندارد؟