firebase / php-jwt

PHP package for JWT
BSD 3-Clause "New" or "Revised" License
9.3k stars 1.26k forks source link

Version issue when install the library. #529

Closed PrachiSurati closed 11 months ago

PrachiSurati commented 11 months ago

Attach the error for better understanding.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

vishwarajanand commented 11 months ago

@PrachiSurati it looks like a issue with your composer.json so maybe sharing that too can help? When I run composer update in this repo, I see it works well:

➜ php-jwt git:(main) composer update Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port). Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:879 Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:884 Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Lock file operations: 0 installs, 8 updates, 0 removals - Upgrading guzzlehttp/promises (2.0.0 => 2.0.1) - Upgrading guzzlehttp/psr7 (2.5.0 => 2.6.0) - Upgrading nikic/php-parser (v4.16.0 => v4.17.1) - Upgrading phpdocumentor/type-resolver (1.7.2 => 1.7.3) - Upgrading phpstan/phpdoc-parser (1.22.1 => 1.23.1) - Upgrading phpunit/php-code-coverage (9.2.26 => 9.2.27) - Upgrading phpunit/phpunit (9.6.10 => 9.6.11) - Upgrading sebastian/global-state (5.0.5 => 5.0.6) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 8 updates, 0 removals - Syncing phpstan/phpdoc-parser (1.23.1) into cache - Syncing phpdocumentor/type-resolver (1.7.3) into cache - Syncing phpunit/phpunit (9.6.11) into cache - Upgrading guzzlehttp/psr7 (2.5.0 => 2.6.0): Extracting archive - Upgrading guzzlehttp/promises (2.0.0 => 2.0.1): Extracting archive - Upgrading phpstan/phpdoc-parser (1.22.1 => 1.23.1): Checking out 846ae76eef from cache - Upgrading phpdocumentor/type-resolver (1.7.2 => 1.7.3): Checking out 3219c6ee25 from cache - Upgrading sebastian/global-state (5.0.5 => 5.0.6): Extracting archive - Upgrading nikic/php-parser (v4.16.0 => v4.17.1): Extracting archive - Upgrading phpunit/php-code-coverage (9.2.26 => 9.2.27): Extracting archive - Upgrading phpunit/phpunit (9.6.10 => 9.6.11): Checking out 810500e928 from cache Generating autoload files 29 packages you are using are looking for funding. Use the `composer fund` command to find out more! ➜ php-jwt git:(main)

Closing since no action needed.