Skip to content

composer outdated -m doesn't respect extra.symfony.require #1072

@dsdeboer

Description

@dsdeboer

My composer.json:

{
  "require": {
    "php": "^8.4",
    "symfony/cache": "^7.2.9",
    "symfony/console": "^7.2.9",
    "symfony/dotenv": "^7.2.9",
    "symfony/serializer": "^7.2.9",
    "symfony/twig-bundle": "^7.2.9",
    "symfony/uid": "^7.2.8",
    "symfony/yaml": "^7.2.9"
  },
  "extra": {
    "symfony": {
      "require": "7.2.*"
    }
  }
}

Output of composer diagnose:

not relevant

When I run this command:

symfony composer outdated -m -D "symfony/*"     

I get the following output:

Color legend:
- patch or minor release available - update recommended
- major release available - update possible
symfony/cache               7.2.9  7.4.0  Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/console             7.2.9  7.4.0  Eases the creation of beautiful and testable command line interfaces
symfony/debug-bundle        7.2.0  7.4.0  Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
symfony/dotenv              7.2.9  7.4.0  Registers environment variables from a .env file
symfony/framework-bundle    7.2.9  7.4.0  Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client         7.2.9  7.4.0  Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/property-access     7.2.9  7.4.0  Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info       7.2.9  7.4.0  Extracts information about PHP class' properties using metadata of popular sources
symfony/runtime             7.2.8  7.4.0  Enables decoupling PHP applications from global state
symfony/serializer          7.2.9  7.4.0  Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/stopwatch           7.2.4  7.4.0  Provides a way to profile code
symfony/twig-bundle         7.2.9  7.4.0  Provides a tight integration of Twig into the Symfony full-stack framework
symfony/uid                 7.2.8  7.4.0  Provides an object-oriented API to generate and represent UIDs
symfony/web-profiler-bundle 7.2.9  7.4.0  Provides a development tool that gives detailed information about the execution of any request
symfony/yaml                7.2.9  7.4.0  Loads and dumps YAML files

And I expected this to happen:

I expect the version updates available to respect the actual updates for 7.2.* to be the listed versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions