nelmio / NelmioApiDocBundle

Generates documentation for your REST API from annotations
MIT License
2.23k stars 834 forks source link

Could update psr/log and psr/container to ^2.0 or ^3.0 #1885

Closed tidall87 closed 2 years ago

tidall87 commented 3 years ago

I trying to add composer require nelmio/api-doc-bundle --dev but i obtained this message

Problem 1
    - nelmio/api-doc-bundle[v4.6.0, ..., v4.6.1] require psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires nelmio/api-doc-bundle ^4.6 -> satisfiable by nelmio/api-doc-bundle[v4.6.0, v4.6.1].

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

after analyse, the composer.json have

"require": {
        ...
        "psr/container": "^1.0",
        "psr/log": "^1.0",
        ...
    },

this could be simply remplace by

"require": {
        ...
        "psr/container": "^1.0|^2.0",
        "psr/log": "^1.0|^2.0|^3.0",
        ...
    },
tidall87 commented 3 years ago

This is my composer.json

"require": {
    "php": ">=8.0",
    "ext-ctype": "*",
    "ext-dom": "*",
    "ext-iconv": "*",
    "ext-json": "*",
    "ext-libxml": "*",
    "ext-redis": "*",
    "ext-simplexml": "*",
    "ext-xsl": "*",
    "api-platform/core": "^2.6",
    "beberlei/doctrineextensions": "^1.3",
    "composer/package-versions-deprecated": "1.11.99.4",
    "doctrine/annotations": "^1.0",
    "doctrine/common": "^3.1",
    "doctrine/doctrine-bundle": "^2.4",
    "doctrine/doctrine-migrations-bundle": "^3.1",
    "doctrine/orm": "^2.9",
    "doctrine/persistence": "^2.2",
    "elasticsearch/elasticsearch": "^v7.14",
    "google/recaptcha": "^1.2",
    "grouperf/elasticsearch-bundle": "dev-main",
    "guzzlehttp/guzzle": "^7.3",
    "incenteev/composer-parameter-handler": "^v2.1",
    "knplabs/knp-time-bundle": "^v1.16",
    "lexik/jwt-authentication-bundle": "^2.13",
    "nelmio/cors-bundle": "^2.1",
    "phpdocumentor/reflection-docblock": "^5.2",
    "predis/predis": "^v1.1",
    "sentry/sentry-symfony": "^4.2",
    "snc/redis-bundle": "^3.4",
    "symfony/asset": "5.3.*",
    "symfony/console": "^5.3",
    "symfony/debug": "^v4.4",
    "symfony/doctrine-messenger": "^v5.3",
    "symfony/dotenv": "^5.3",
    "symfony/expression-language": "5.3.*",
    "symfony/flex": "^1.16",
    "symfony/form": "^5.3",
    "symfony/framework-bundle": "^5.3",
    "symfony/http-client": "^5.3",
    "symfony/http-kernel": "^5.3, !=5.3.7",
    "symfony/monolog-bundle": "^v3.7",
    "symfony/property-access": "5.3.*",
    "symfony/property-info": "5.3.*",
    "symfony/proxy-manager-bridge": "5.3.*",
    "symfony/runtime": "^5.3",
    "symfony/security-bundle": "5.3.*",
    "symfony/serializer": "5.3.*",
    "symfony/swiftmailer-bundle": "^v3.5",
    "symfony/templating": "^v5.3",
    "symfony/twig-bundle": "^v5.3",
    "symfony/validator": "^5.3",
    "symfony/webpack-encore-bundle": "^v1.12",
    "symfony/yaml": "^5.3"
  },
  "require-dev": {
    "escapestudios/symfony2-coding-standard": "^3.12",
    "friendsofphp/php-cs-fixer": "^3.2",
    "phpunit/phpunit": "^9.5",
    "rector/rector": "^0.11",
    "squizlabs/php_codesniffer": "^3.6",
    "symfony/browser-kit": "^5.3",
    "symfony/css-selector": "^5.3",
    "symfony/debug-bundle": "^5.3",
    "symfony/maker-bundle": "^1.34",
    "symfony/phpunit-bridge": "^v5.3",
    "symfony/stopwatch": "^5.3",
    "symfony/web-profiler-bundle": "^5.3",
    "symplify/config-transformer": "^9.4"
  }
otono commented 3 years ago

Have the same issue. PHP 8.0.11, Symfony 5.3.9

IvoPereira commented 3 years ago

Facing the same situation, with PHP 8 and Symfony 5.3.9.

GuilhemN commented 3 years ago

Could you submit a PR with this change? :)

haidukua commented 2 years ago

Could you submit a PR with this change? :) Yes )

fallais commented 2 years ago

When do you plan to release it please ? :-)

massimilianobraglia commented 2 years ago

Hello there! Thanks for this one!

Any plan on a release? 😄

GuilhemN commented 2 years ago

Here you go https://github.com/nelmio/NelmioApiDocBundle/releases/tag/v4.7.0 😉

massimilianobraglia commented 2 years ago

thank you @GuilhemN!