Skip to content

Don't use wildcard dependencies #4

@millenium-codebug

Description

@millenium-codebug

composer.json lists many wildcard dependencies:

        "zendframework/zend-http": "2.2.*",
        "zendframework/zend-mail": "2.2.*",
        "videlalvaro/php-amqplib": "2.*",
        "phpoffice/phpspreadsheet": "1.8.*",
        "ezyang/htmlpurifier": "4.*",
        "smarty/smarty": "3.*",
        "phpmailer/phpmailer": "6.*",
        "league/iso3166": "2.*",
        "guzzlehttp/guzzle": "6.*",
        "stevenmaguire/oauth2-microsoft": "2.*",

Versions should always be pinned to a major version so that they don't break when the interface changes with major updates.

Also the following is abandoned:

  • videlalvaro/php-amqplib
  • zendframework/zend-http
  • zendframework/zend-mail

I would also recommend to insert ALL dependencies (adodb for example) in ONE composer.json and please don't commit the vendor

./gdpr/include/smarty/composer.json
./modules/Settings/ProcessMaker/thirdparty/cron-expression/composer.json
./modules/Settings/ProcessMaker/thirdparty/jqcron/composer.json
./modules/VteSync/composer.json

Maybe you should evaluate violinist.io to automate the dependency update process

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