Je n'arrive à resoudre ce problème.
Est-ce qu'il y a quelqu'un peut m'aider s'il vous plaît???

$ composer require stof/doctrine-extensions-bundle "1.5"
./composer.json has been updated
Running composer update stof/doctrine-extensions-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

  • gedmo/doctrine-extensions[v2.3.4, ..., v2.3.9] require doctrine/common >=2.2,<2.5-dev -> found doctrine/common[2.2.0, ..., v2.4.3] but the package is fixed to 3.1.1 (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.
  • gedmo/doctrine-extensions[v2.3.10, ..., v2.4.42, v3.0.1] require doctrine/common ~2.4 -> found doctrine/common[v2.4.0, ..., 2.13.3] but the package is fixed to 3.1.1 (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.
  • gedmo/doctrine-extensions v3.0.0 requires php ^7.2 -> your php version (7.1.26) does not satisfy that requirement.
  • gedmo/doctrine-extensions[v3.0.2, ..., v3.0.3] require php ^7.2 || ^8.0 -> your php version (7.1.26) does not satisfy that requirement.
  • stof/doctrine-extensions-bundle v1.5.0 requires gedmo/doctrine-extensions ^2.3.4 || ^3.0.0 -> satisfiable by gedmo/doctrine-extensions[v2.3.4, ..., v2.4.42, v3.0.0, v3.0.1, v3.0.2, v3.0.3].
  • Root composer.json requires stof/doctrine-extensions-bundle 1.5 -> satisfiable by stof/doctrine-extensions-bundle[v1.5.0].

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

1 réponse


L'erreur explique le problème :

gedmo/doctrine-extensions v3.0.0 requires php ^7.2 -> your php version (7.1.26) does not satisfy that requirement.

PHP bloque ici, il faut la version 7.2 minimum

Mimason'
Auteur

Bonjour,
Merci mon frère donc ça s'est bien passé mais il marche dans la prochaine version 2.2.0 comme ci-dessous 😜👍

$ composer require gedmo/doctrine-extensions v2.2.0
./composer.json has been updated
Running composer update gedmo/doctrine-extensions
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals

  • Locking gedmo/doctrine-extensions (v2.2.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
  • Downloading gedmo/doctrine-extensions (v2.2.0)
  • Installing gedmo/doctrine-extensions (v2.2.0): Extracting archive
    Generating autoload files
    composer/package-versions-deprecated: Generating version class...
    composer/package-versions-deprecated: ...done generating version class
    81 packages you are using are looking for funding.
    Use the composer fund command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]

Nothing to unpack