From 1bdeb1ebe0c9d3d40fe7247bde5ff30af3e2d417 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Tue, 24 Feb 2026 12:14:20 -0600 Subject: [PATCH 1/2] fix: default to latest stable composer when no version specified When install-composer.sh is called with no argument, it now runs the Composer installer without a version flag, defaulting to latest stable (currently Composer 2). Previously, an empty argument would pass --version="" which could cause unexpected behavior. This simplifies the workaround for corporate proxy environments (#236) where users can now run install-composer.sh without needing to specify 2. Ref #236 --- scripts/install-composer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install-composer.sh b/scripts/install-composer.sh index 3db228b4..78854aff 100755 --- a/scripts/install-composer.sh +++ b/scripts/install-composer.sh @@ -24,8 +24,10 @@ elif [ "$VERSION" = 'preview' ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --preview elif [ "$VERSION" = 'snapshot' ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --snapshot -else +elif [ -n "$VERSION" ]; then php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --version="$VERSION" +else + php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer fi # Remove the setup script From fbc1e787b1647a2847a40cdc6546f52c389a5cb3 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Tue, 24 Feb 2026 15:31:22 -0600 Subject: [PATCH 2/2] Update CHANGELOG with recent improvements and fixes --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a38bee..355e6034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Improved composer install script to default to latest stable * Fixed `mysqldump` warning for unknown option on MariaDB 11.4/11.8 [#237](https://github.com/lando/php/issues/237) * Updated to [@lando/nginx@1.6.0](https://github.com/lando/nginx/releases/tag/v1.6.0)