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
-------

1f953e42f2 [5.0] Remove some unused variables
This commit is contained in:
Fabien Potencier 2020-02-27 07:04:32 +01:00
commit 15297b1409
3 changed files with 2 additions and 3 deletions

View File

@ -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));
}

View File

@ -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) {

View File

@ -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