Skip to content

Commit

Permalink
[HttpFoundation] Use convention to allow throwing from __toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 23, 2015
1 parent 92b0283 commit 8982c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -480,7 +480,7 @@ public function __toString()
try {
$content = $this->getContent();
} catch (\LogicException $e) {
trigger_error($e->getMessage(), E_USER_ERROR);
return trigger_error($e, E_USER_ERROR);
}

return
Expand Down

0 comments on commit 8982c32

Please sign in to comment.