From c27dca83ef21bd44c41c1a60dd2e7ab1afa70a13 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 8 May 2022 10:39:36 +0200 Subject: [PATCH] Fix deprecated syntax since PHP 8.2 (#10766) --- src/Composer/Autoload/AutoloadGenerator.php | 2 +- src/Composer/DependencyResolver/Problem.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 87b346595..802cf1b52 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -889,7 +889,7 @@ EXT_CHECKS; // platform_check.php @generated by Composer \$issues = array(); -${requiredPhp}${requiredExtensions} +{$requiredPhp}{$requiredExtensions} if (\$issues) { if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); diff --git a/src/Composer/DependencyResolver/Problem.php b/src/Composer/DependencyResolver/Problem.php index 124a544cb..0ebe14c2a 100644 --- a/src/Composer/DependencyResolver/Problem.php +++ b/src/Composer/DependencyResolver/Problem.php @@ -363,7 +363,7 @@ class Problem $providersStr = implode(array_map(function ($p) { $description = $p['description'] ? ' '.substr($p['description'], 0, 100) : ''; - return " - ${p['name']}".$description."\n"; + return ' - '.$p['name'].$description."\n"; }, count($providers) > $maxProviders + 1 ? array_slice($providers, 0, $maxProviders) : $providers)); if (count($providers) > $maxProviders + 1) { $providersStr .= ' ... and '.(count($providers) - $maxProviders).' more.'."\n";