[HttpFoundation] Use convention to allow throwing from __toString()
This commit is contained in:
parent
92b0283f49
commit
8982c3246c
@ -480,7 +480,7 @@ class Request
|
|||||||
try {
|
try {
|
||||||
$content = $this->getContent();
|
$content = $this->getContent();
|
||||||
} catch (\LogicException $e) {
|
} catch (\LogicException $e) {
|
||||||
trigger_error($e->getMessage(), E_USER_ERROR);
|
return trigger_error($e, E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user