When I run composer require greenlion/php-sql-parser
I get the following error:
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2 Using version ^4.4 for greenlion/php-sql-parser ./composer.json has been updated Loading composer repositories with package information Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2 Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - doctrine/lexer 1.1.0 requires php ^7.2 -> your PHP version (7.1.30) does not satisfy that requirement. - doctrine/lexer 1.1.0 requires php ^7.2 -> your PHP version (7.1.30) does not satisfy that requirement. - doctrine/lexer 1.1.0 requires php ^7.2 -> your PHP version (7.1.30) does not satisfy that requirement. - Installation request for doctrine/lexer (locked at 1.1.0) -> satisfiable by doctrine/lexer[1.1.0]. Installation failed, reverting ./composer.json to its original content.
I don't understand. https://github.com/greenlion/PHP-SQL-Parser/blob/v4.4.0/composer.json shows that the only dependency is "php" : ">=5.3.2"
.
Any ideas?
https://stackoverflow.com/questions/67030435/why-is-composer-require-trying-to-install-a-library-that-isnt-a-dependency April 10, 2021 at 11:05AM
没有评论:
发表评论