From c2389d6b201e2c446efe2ad75cf469f3f6a79dfe Mon Sep 17 00:00:00 2001 From: Alex Karajos Date: Tue, 17 Dec 2024 12:22:21 +0200 Subject: [PATCH] Fix `getEnvironment()` in composer-post-install-script.php Signed-off-by: Alex Karajos --- bin/composer-post-install-script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/composer-post-install-script.php b/bin/composer-post-install-script.php index b45e84e..66bd803 100644 --- a/bin/composer-post-install-script.php +++ b/bin/composer-post-install-script.php @@ -26,7 +26,7 @@ function copyFile(array $file): void function getEnvironment(): string { - return file_exists('config/development.local.php') ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION; + return file_exists('config/autoload/development.local.php') ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION; } // when adding files to the below array the `source` and `destination` paths must be relative to the project root folder