[HttpFoundation] Use convention to allow throwing from __toString()
This commit is contained in:
parent
92b0283f49
commit
8982c3246c
|
@ -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
|
||||
|
|
Reference in New Issue