From ede152bd65a7425774306b4fff058030427f5b73 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Sun, 12 May 2024 21:55:40 +0100 Subject: [PATCH] Close style tags to avoid bleed (#11972) --- src/Composer/Command/PackageDiscoveryTrait.php | 2 +- src/Composer/Console/Application.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Command/PackageDiscoveryTrait.php b/src/Composer/Command/PackageDiscoveryTrait.php index d95e06de8..f0aafda80 100644 --- a/src/Composer/Command/PackageDiscoveryTrait.php +++ b/src/Composer/Command/PackageDiscoveryTrait.php @@ -96,7 +96,7 @@ trait PackageDiscoveryTrait foreach ($requires as $requirement) { if (isset($requirement['version']) && Preg::isMatch('{^\d+(\.\d+)?$}', $requirement['version'])) { - $io->writeError('The "'.$requirement['version'].'" constraint for "'.$requirement['name'].'" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints'); + $io->writeError('The "'.$requirement['version'].'" constraint for "'.$requirement['name'].'" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints'); } if (!isset($requirement['version'])) { diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 7919c29d9..f1d5d9ffb 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -404,7 +404,7 @@ class Application extends BaseApplication } if (isset($startTime)) { - $io->writeError('Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MiB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MiB), time: '.round(microtime(true) - $startTime, 2).'s'); + $io->writeError('Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MiB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MiB), time: '.round(microtime(true) - $startTime, 2).'s'); } if ($proxyManager->needsTransitionWarning()) {