Skip to content

Normalize deferred installer hook environment#60578

Draft
sawirricardo wants to merge 1 commit into
laravel:13.xfrom
sawirricardo:fix-deferred-installer-hook-env
Draft

Normalize deferred installer hook environment#60578
sawirricardo wants to merge 1 commit into
laravel:13.xfrom
sawirricardo:fix-deferred-installer-hook-env

Conversation

@sawirricardo

Copy link
Copy Markdown

This updates the Composer autoload hook to copy LARAVEL_INSTALLER_DEFER_HOOKS from $_ENV or $_SERVER into the process environment when getenv() cannot see it.

That lets later @php artisan ... Composer scripts inherit the deferred installer flag and avoid prompting during starter kit installs on platforms where Composer exposes the value through PHP superglobals.

Fixes #60253.

Tests:

  • vendor/bin/phpunit tests/Foundation/FoundationComposerScriptsTest.php
  • vendor/bin/pint --test src/Illuminate/Foundation/ComposerScripts.php tests/Foundation/FoundationComposerScriptsTest.php

@taylorotwell taylorotwell marked this pull request as draft June 23, 2026 18:40
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.

Laravel install fails on Windows install:features

1 participant