minor #33199 [VarDumper] Remove useless variable (ismail1432)
This PR was submitted for the 4.4 branch but it was squashed and merged into the 3.4 branch instead (closes #33199).
Discussion
----------
[VarDumper] Remove useless variable
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
I think `$out` variable is useless in both case
Commits
-------
df47058c55
[VarDumper] Remove useless variable
This commit is contained in:
commit
a3a4b190f3
@ -26,7 +26,7 @@ class FunctionsTest extends TestCase
|
||||
|
||||
ob_start();
|
||||
$return = dump($var1);
|
||||
$out = ob_get_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$this->assertEquals($var1, $return);
|
||||
}
|
||||
@ -41,7 +41,7 @@ class FunctionsTest extends TestCase
|
||||
|
||||
ob_start();
|
||||
$return = dump($var1, $var2, $var3);
|
||||
$out = ob_get_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$this->assertEquals([$var1, $var2, $var3], $return);
|
||||
}
|
||||
|
Reference in New Issue
Block a user