minor #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 #15198).

Discussion
----------

[HttpFoundation] Remove unused var

Minor. Looks like the var `$content` got introduced in aa5e6165, then in 8982c324 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)
This commit is contained in:
Tobias Schultze 2015-07-04 00:45:57 +02:00
commit 8a8a929d5c
1 changed files with 0 additions and 1 deletions

View File

@ -476,7 +476,6 @@ class Request
*/
public function __toString()
{
$content = '';
try {
$content = $this->getContent();
} catch (\LogicException $e) {