[HttpFoundation] Use convention to allow throwing from __toString()

This commit is contained in:
Nicolas Grekas 2015-06-23 13:38:55 +02:00
parent 92b0283f49
commit 8982c3246c
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ class Request
try {
$content = $this->getContent();
} catch (\LogicException $e) {
trigger_error($e->getMessage(), E_USER_ERROR);
return trigger_error($e, E_USER_ERROR);
}
return