From ed87a7cd671312d0f1304605fad61789c0edd633 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Mon, 2 Jun 2025 12:00:20 +0700 Subject: [PATCH] don't force invalidate php-src if the download option is explicitly passed --- src/SPC/command/CraftCommand.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/SPC/command/CraftCommand.php b/src/SPC/command/CraftCommand.php index 3764c549..7b75c783 100644 --- a/src/SPC/command/CraftCommand.php +++ b/src/SPC/command/CraftCommand.php @@ -77,8 +77,6 @@ class CraftCommand extends BaseCommand $args[] = '--with-php=' . $craft['php-version']; if (!array_key_exists('ignore-cache-sources', $craft['download-options']) || $craft['download-options']['ignore-cache-sources'] === false) { $craft['download-options']['ignore-cache-sources'] = 'php-src'; - } elseif ($craft['download-options']['ignore-cache-sources'] !== null) { - $craft['download-options']['ignore-cache-sources'] .= ',php-src'; } } $this->optionsToArguments($craft['download-options'], $args); @@ -144,7 +142,6 @@ class CraftCommand extends BaseCommand }); } elseif (extension_loaded('pcntl')) { pcntl_signal(SIGINT, function () use ($process) { - /* @noinspection PhpComposerExtensionStubsInspection */ $process->signal(SIGINT); }); } else {