From 9688a93d3ede6f3cc31b396c41202e88aaf6bf42 Mon Sep 17 00:00:00 2001 From: Nicholas Narsing Date: Fri, 15 Apr 2022 10:45:39 -0700 Subject: [PATCH] Change manager-timeout default to PHP_INT_MAX to fix compatibility with Composer 2.3+ --- Asset/AbstractAssetManager.php | 2 +- Resources/doc/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Asset/AbstractAssetManager.php b/Asset/AbstractAssetManager.php index 8a26833..427bed3 100644 --- a/Asset/AbstractAssetManager.php +++ b/Asset/AbstractAssetManager.php @@ -218,7 +218,7 @@ public function run() $this->io->write($info); $timeout = ProcessExecutor::getTimeout(); - ProcessExecutor::setTimeout($this->config->get('manager-timeout')); + ProcessExecutor::setTimeout($this->config->get('manager-timeout', PHP_INT_MAX)); $cmd = $updatable ? $this->getUpdateCommand() : $this->getInstallCommand(); $res = (int) $this->executor->execute($cmd); ProcessExecutor::setTimeout($timeout); diff --git a/Resources/doc/config.md b/Resources/doc/config.md index e8b54b5..46e5956 100644 --- a/Resources/doc/config.md +++ b/Resources/doc/config.md @@ -241,7 +241,7 @@ option `config.foxy.manager-update-options` [`string`, default: `null`]. ### Define the execution timeout of the asset manager You can define the execution timeout of the asset manager with the -option `config.foxy.manager-timeout` [`int`, default: `null`]. +option `config.foxy.manager-timeout` [`int`, default: `PHP_INT_MAX`]. **Example:** ```json