From 1f953e42f2adb1e3d0873a16b799891f6c47031f Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Wed, 26 Feb 2020 23:30:10 +0100 Subject: [PATCH] [5.0] Remove some unused variables --- src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php | 2 +- src/Symfony/Component/String/UnicodeString.php | 2 +- src/Symfony/Component/VarDumper/Cloner/VarCloner.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php b/src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php index 3f287feb6b..f17a4a7850 100644 --- a/src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php +++ b/src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php @@ -72,7 +72,7 @@ final class HttplugWaitLoop goto check_duration; } - if ([$request, $promise] = $this->promisePool[$response] ?? null) { + if ([, $promise] = $this->promisePool[$response] ?? null) { unset($this->promisePool[$response]); $promise->resolve($this->createPsr7Response($response, true)); } diff --git a/src/Symfony/Component/String/UnicodeString.php b/src/Symfony/Component/String/UnicodeString.php index ada77caaae..0d057a445b 100644 --- a/src/Symfony/Component/String/UnicodeString.php +++ b/src/Symfony/Component/String/UnicodeString.php @@ -243,7 +243,7 @@ class UnicodeString extends AbstractUnicodeString $tail = substr($tail, \strlen($slice) + \strlen($from)); } - $str->string = $result .= $tail; + $str->string = $result.$tail; normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string); if (false === $str->string) { diff --git a/src/Symfony/Component/VarDumper/Cloner/VarCloner.php b/src/Symfony/Component/VarDumper/Cloner/VarCloner.php index 4c653d627d..f02a59d567 100644 --- a/src/Symfony/Component/VarDumper/Cloner/VarCloner.php +++ b/src/Symfony/Component/VarDumper/Cloner/VarCloner.php @@ -28,7 +28,6 @@ class VarCloner extends AbstractCloner $pos = 0; // Number of cloned items past the minimum depth $refsCounter = 0; // Hard references counter $queue = [[$var]]; // This breadth-first queue is the return value - $indexedArrays = []; // Map of queue indexes that hold numerically indexed arrays $hardRefs = []; // Map of original zval ids to stub objects $objRefs = []; // Map of original object handles to their stub object counterpart $objects = []; // Keep a ref to objects to ensure their handle cannot be reused while cloning