php-stubs-generator icon indicating copy to clipboard operation
php-stubs-generator copied to clipboard

composer require: Your requirements could not be resolved to an installable set of packages

Open AdamMarton opened this issue 6 years ago • 5 comments

Hi,

Just tried to install php-stubs-generator globally and encountered this issue:

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

  Problem 1
    - Installation request for giacocorsiglia/stubs-generator ^0.5.0 -> satisfiable by giacocorsiglia/stubs-generator[v0.5].
    - Conclusion: remove nikic/php-parser v4.1.0
    - Conclusion: don't install nikic/php-parser v4.1.0
    - giacocorsiglia/stubs-generator v0.5 requires nikic/php-parser ^3.1 -> satisfiable by nikic/php-parser[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5].
    - Can only install one of: nikic/php-parser[v3.1.0, v4.1.0].
    - Can only install one of: nikic/php-parser[v3.1.1, v4.1.0].
    - Can only install one of: nikic/php-parser[v3.1.2, v4.1.0].
    - Can only install one of: nikic/php-parser[v3.1.3, v4.1.0].
    - Can only install one of: nikic/php-parser[v3.1.4, v4.1.0].
    - Can only install one of: nikic/php-parser[v3.1.5, v4.1.0].
    - Installation request for nikic/php-parser (locked at v4.1.0) -> satisfiable by nikic/php-parser[v4.1.0].


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

Do you have plans to update this lib?

AdamMarton avatar Dec 04 '18 10:12 AdamMarton

@GiacoCorsiglia,

FYI, I've upgraded nikic/php-parser and vimeo/psalm and it works flawlessly in my local env. Unfortunately I couldn't push it due to 403.

AdamMarton avatar Feb 21 '19 07:02 AdamMarton

@AdamMarton You should create fork and push to the fork, then make pull request in this repository. https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/

adaamz avatar Feb 21 '19 11:02 adaamz

@AdamMarton You should create fork and push to the fork, then make pull request in this repository. https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/

Thank you very much, @CZechBoY 👍

AdamMarton avatar Feb 21 '19 13:02 AdamMarton

Simply issuing box compile will build a self-containing PHAR from this project.

See https://github.com/humbug/box/releases

szepeviktor avatar May 05 '19 22:05 szepeviktor

@GiacoCorsiglia Please consider PHIVE ditribution: https://phar.io/

szepeviktor avatar May 05 '19 22:05 szepeviktor