From fd1eaf61a7bbc6c51f3ca8d4643014bb4cb27e89 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 19 Jun 2026 05:31:04 +0200 Subject: [PATCH] composer: Stop using lock file Since we are a library that supports wide range of PHP versions, we cannot lock into a single set of versions of run-time dependencies. https://getcomposer.org/doc/02-libraries.md#lock-file Composer 1.10.0 introduced `lock` option to prevent generation of `composer.lock` file: https://github.com/composer/composer/releases/tag/1.10.0 https://getcomposer.org/doc/06-config.md#lock This will basically make `composer install` work the same way as `composer update`. --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index bde6f85..4268908 100644 --- a/composer.json +++ b/composer.json @@ -46,6 +46,9 @@ "autoload-dev": { "psr-4": { "Tests\\Readability\\": "tests/" } }, + "config": { + "lock": false + }, "scripts": { "fix": "php-cs-fixer fix --verbose --diff", "phpstan": "phpstan analyze --memory-limit 512M",