File: 0012-Fix-type-error.patch

package info (click to toggle)
composer 2.5.5-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,484 kB
  • sloc: php: 71,775; makefile: 70; xml: 39
file content (22 lines) | stat: -rw-r--r-- 1,185 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Jordi Boggiano <j.boggiano@seld.be>
Date: Fri, 26 Jan 2024 17:27:42 +0100
Subject: Fix type error

Origin: upstream, https://github.com/composer/composer/commit/b1bd22f37c63e319f89a660dde631b8067c47448
---
 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 b198f0f..cb7ebc1 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;
             }
         }