samsonasik / ErrorHeroModule

:gem: A Hero for your Zend Framework/Laminas, and Expressive/Mezzio application to log ( DB and Mail ) and handle php errors & exceptions during Mvc process/between request and response
MIT License
50 stars 6 forks source link

Can't update my composer since weeks #95

Closed juliangorge closed 1 year ago

juliangorge commented 1 year ago

Hello! I have many projects with this module and I have problems with update my packages. I have tried to create a new Laminas project but it is not still work. Also I tried to install specific 3.1.1 version (compatible with PHP 7).

`composer require samsonasik/error-hero-module
Using version ^3.1 for samsonasik/error-hero-module ./composer.json has been updated Running composer update samsonasik/error-hero-module Loading composer repositories with package information Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require samsonasik/error-hero-module:*" to figure out if any version is installable, or "composer require samsonasik/error-hero-module:^2.1" if you know which you need.

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

What ZF/Expressive/Laminas/Mezzio application I'm using when issue happen ?

What PHP version you're using?

What ErrorHeroModule version you're using?

What Database you're using?

samsonasik commented 1 year ago

It seems you define laminas-diactoros in your composer.json, You need downgrade to use "laminas-diactoros":"~2.17.0" in your composer.json

see on this requirement https://packagist.org/packages/laminas/laminas-diactoros#2.17.0

juliangorge commented 1 year ago

No, there is not

"require": { "php": "^7.3 || ~8.0.0 || ~8.1.0", "laminas-api-tools/api-tools": "^1.6.0", "laminas-api-tools/api-tools-content-negotiation": "^1.6.0", "laminas-api-tools/api-tools-documentation": "^1.3", "laminas-api-tools/api-tools-rest": "^1.6.1", "laminas/laminas-authentication": "^2.12", "laminas/laminas-barcode": "^2.11", "laminas/laminas-cache": "^3.6", "laminas/laminas-captcha": "^2.13", "laminas/laminas-cli": "^1.5", "laminas/laminas-component-installer": "^2.1.1", "laminas/laminas-db": "^2.15", "laminas/laminas-development-mode": "^3.2", "laminas/laminas-i18n": "^2.17", "laminas/laminas-i18n-resources": "^2.8", "laminas/laminas-mvc-plugin-flashmessenger": "^1.8", "laminas/laminas-mvc-plugin-identity": "^1.4", "laminas/laminas-navigation": "^2.15", "laminas/laminas-permissions-acl": "^2.10", "laminas/laminas-progressbar": "^2.10", "laminas/laminas-servicemanager": "^3.17", "laminas/laminas-session": "^2.13", "laminas/laminas-soap": "^2.10", "laminas/laminas-view": "^2.23", "laminas/laminas-zendframework-bridge": "^1.0" }, "require-dev": { "laminas-api-tools/api-tools-admin": "^2.0.1", "laminas-api-tools/api-tools-asset-manager": "^1.2", "laminas/laminas-cli": "^1.2", "laminas/laminas-coding-standard": "~2.3.0", "laminas/laminas-composer-autoloading": "^3.1", "laminas/laminas-developer-tools": "^2.3", "laminas/laminas-test": "^4.0", "phpunit/phpunit": "^9.5.20", "psalm/plugin-phpunit": "^0.16.1", "roave/security-advisories": "dev-master", "vimeo/psalm": "^4.10" },

samsonasik commented 1 year ago

Looking at the error, it seems there is interdependency somewhere, you need to pin in composer.json:

"require" {
      // ...
     "laminas/laminas-diactoros": "2.17.0"
      // ...
}

and run composer update

juliangorge commented 1 year ago

Okay, I installed it. But when I run update, I have this log:

Problem 1

Do I need this roave/security-advisories?

samsonasik commented 1 year ago

You don't if you use old libraries, roave/security-advisories verify latest patch for better security, which not on your use case as you use old php version.

juliangorge commented 1 year ago

Thank you!