8000 minor #35880 [5.0] Remove some unused variables (fancyweb) · symfony/symfony@15297b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15297b1

Browse files
committed
minor #35880 [5.0] Remove some unused variables (fancyweb)
This PR was merged into the 5.0 branch. Discussion ---------- [5.0] Remove some unused variables | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Some cleanup. Commits ------- 1f953e4 [5.0] Remove some unused variables
2 parents 4206b4d + 1f953e4 commit 15297b1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function wait(?ResponseInterface $pendingResponse, float $maxDuration = n
7272
goto check_duration;
7373
}
7474

75-
if ([$request, $promise] = $this->promisePool[$response] ?? null) {
75+
if ([, $promise] = $this->promisePool[$response] ?? null) {
7676
unset($this->promisePool[$response]);
7777
$promise->resolve($this->createPsr7Response($response, true));
7878
}

src/Symfony/Component/String/UnicodeString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function replace(string $from, string $to): AbstractString
243243
$tail = substr($tail, \strlen($slice) + \strlen($from));
244244
}
245245

246-
$str->string = $result .= $tail;
246+
$str->string = $result.$tail;
247247
normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
248248

249249
if (false === $str->string) {

src/Symfony/Component/VarDumper/Cloner/VarCloner.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ protected function doClone($var)
2828
$pos = 0; // Number of cloned items past the minimum depth
2929
$refsCounter = 0; // Hard references counter
3030
$queue = [[$var]]; // This breadth-first queue is the return value
31-
$indexedArrays = []; // Map of queue indexes that hold numerically indexed arrays
3231
$hardRefs = []; // Map of original zval ids to stub objects
3332
$objRefs = []; // Map of original object handles to their stub object counterpart
3433
$objects = []; // Keep a ref to objects to ensure their handle cannot be reused while cloning

0 commit comments

Comments
 (0)
0