0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Composer: prevent a lock file from being created

Composer 1.10.0 introduced a `lock` config option, which, when set to `false` will prevent a `composer.lock` file from being created and will ignore it when one exists.

This is a useful option for packages like PHPMailer where the `lock` file has no meaning.

It also makes life more straight-forward for contributors as they don't have to remember that for this repo they should use `composer update` instead of `composer install`. Both will now work the same.

Refs:
https://getcomposer.org/doc/06-config.md#lock
This commit is contained in:
jrfnl 2024-09-11 18:19:52 +02:00
parent 6acfa78df6
commit 3a8e00e4dc
No known key found for this signature in database
GPG Key ID: 88BCD0973A23BCC6

View File

@ -28,7 +28,8 @@
"config": { "config": {
"allow-plugins": { "allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true "dealerdirect/phpcodesniffer-composer-installer": true
} },
"lock": false
}, },
"require": { "require": {
"php": ">=5.5.0", "php": ">=5.5.0",