Skip to content

Commit 8a8a929

Browse files
committed
minor symfony#15198 [HttpFoundation] Remove unused var (Dave Hulbert)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes symfony#15198). Discussion ---------- [HttpFoundation] Remove unused var Minor. Looks like the var `$content` got introduced in aa5e616, then in 8982c32 the early return meant it wasn't needed. | Q | A | ------------- | --- | Fixed tickets | N/A | License | MIT Commits ------- da5218f Remove var not used due to returning early (introduced in 8982c32)
2 parents 9fcad38 + da5218f commit 8a8a929

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ public function __clone()
476476
*/
477477
public function __toString()
478478
{
479-
$content = '';
480479
try {
481480
$content = $this->getContent();
482481
} catch (\LogicException $e) {

0 commit comments

Comments
 (0)