laminas / laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration
https://docs.laminas.dev/laminas-component-installer/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Composer `check-platform-reqs` crashes with v3.0.0 of this component #57

Closed boesing closed 2 years ago

boesing commented 2 years ago

Bug Report

Q A
Version(s) 3.0.0

Summary

When requiring this component as a dependency in a project, the execution of composer check-platform-reqs crashes.

Current behavior

When requiring this component as a dependency in a project, the execution of composer check-platform-reqs crashes.

How to reproduce

{
    "name": "boesing/composer-10940",
    "description": "Example package to outline issue #10940",
    "type": "project",
    "license": "BSD-3-Clause",
    "require": {
        "php": "~8.1.0"
    },
    "require-dev": {
        "laminas/laminas-component-installer": "^3.0"
    },
    "config": {
        "allow-plugins": {
            "laminas/laminas-component-installer": true
        }
    }
}

Install dependencies and run composer check-platform-reqs.

Expected behavior

There is no LogicException thrown by composer check-platform-reqs.


Refs https://github.com/composer/composer/issues/10940

boesing commented 2 years ago

Closed with #58