Skip to content

Commit 49a6a92

Browse files
committed
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. As for this package, none of the dependencies need to be locked, we can use this option. It also makes life easier 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
1 parent ff0758e commit 49a6a92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"dealerdirect/phpcodesniffer-composer-installer": true,
5151
"composer/installers": true
5252
},
53-
"classmap-authoritative": true
53+
"classmap-authoritative": true,
54+
"lock": false
5455
},
5556
"scripts": {
5657
"lint": [

0 commit comments

Comments
 (0)