cakephp / bake

The Bake Command Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bin/cake bake plugin generates composer.json with an invalid version constraint

mehov opened this issue · comments

commented

What I did

bin/cake bake plugin -v PluginName

What I got

{
    "name": "your-name-here/plugin-name",

    "require": {
        "cakephp/cakephp": ">4"
    },

}

What Is The Problem

Loading composer repositories with package information
[UnexpectedValueException]
Could not parse version constraint >4: Invalid version string ">4"

I guess the issue is in this file, but couldn't come up with a fix to suggest.

'cakeVersion' => $composerConfig['require']['cakephp/cakephp'],

commented

What does the version constraint for cakephp/cakephp in your app's composer.json look like?