From b1bd22f37c63e319f89a660dde631b8067c47448 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 26 Jan 2024 17:27:42 +0100 Subject: [PATCH] Fix type error --- src/Composer/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index b198f0f14..cb7ebc185 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -351,7 +351,7 @@ class Factory $io->loadConfiguration($config); // load existing Composer\InstalledVersions instance if available and scripts/plugins are allowed, as they might need it - if (!$disablePlugins && !$disableScripts && !class_exists('Composer\InstalledVersions', false) && file_exists($installedVersionsPath = $config->get('vendor-dir').'/composer/InstalledVersions.php')) { + if (false === $disablePlugins && false === $disableScripts && !class_exists('Composer\InstalledVersions', false) && file_exists($installedVersionsPath = $config->get('vendor-dir').'/composer/InstalledVersions.php')) { include $installedVersionsPath; } }