Skip to content

Comments

Improved composer install script to default to latest stable#239

Merged
AaronFeledy merged 2 commits intomainfrom
fix/composer-default-version
Feb 24, 2026
Merged

Improved composer install script to default to latest stable#239
AaronFeledy merged 2 commits intomainfrom
fix/composer-default-version

Conversation

@AaronFeledy
Copy link
Member

@AaronFeledy AaronFeledy commented Feb 24, 2026

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 fall through to --version="" which could cause unexpected behavior.

This simplifies the workaround for corporate proxy environments where users can now run:

services:
  appserver:
    composer_version: false
    build_as_root:
      - # install certs here
      - /etc/lando/service/helpers/install-composer.sh

No version number needed.

Ref #236


Note

Low Risk
Low risk: small shell-script control-flow change that only affects the no-argument/empty-version Composer install path.

Overview
Updates scripts/install-composer.sh so that when no composer_version (or an empty arg) is provided, it runs the Composer installer without --version, allowing it to default to the latest stable release instead of passing --version="".

Adds a changelog entry noting the improved default behavior.

Written by Cursor Bugbot for commit fbc1e78. This will update automatically on new commits. Configure here.

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
@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for lando-php ready!

Name Link
🔨 Latest commit fbc1e78
🔍 Latest deploy log https://app.netlify.com/projects/lando-php/deploys/699e18ae00cf790008746876
😎 Deploy Preview https://deploy-preview-239--lando-php.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 92 (no change from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@AaronFeledy AaronFeledy changed the title fix: default to latest stable composer when no version specified Improved composer install script to default to latest stable Feb 24, 2026
@AaronFeledy AaronFeledy merged commit 1e3a301 into main Feb 24, 2026
50 checks passed
@AaronFeledy AaronFeledy deleted the fix/composer-default-version branch February 24, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant