File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ public function setCallback($callback = null)
129129 * @param string $json
130130 *
131131 * @return $this
132- *
133- * @throws \InvalidArgumentException
134132 */
135133 public function setJson ($ json )
136134 {
Original file line number Diff line number Diff line change @@ -504,15 +504,7 @@ public function __clone()
504504 */
505505 public function __toString ()
506506 {
507- try {
508- $ content = $ this ->getContent ();
509- } catch (\LogicException $ e ) {
510- if (\PHP_VERSION_ID >= 70400 ) {
511- throw $ e ;
512- }
513-
514- return trigger_error ($ e , \E_USER_ERROR );
515- }
507+ $ content = $ this ->getContent ();
516508
517509 $ cookieHeader = '' ;
518510 $ cookies = [];
@@ -577,8 +569,6 @@ public function overrideGlobals()
577569 *
578570 * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
579571 * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
580- *
581- * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
582572 */
583573 public static function setTrustedProxies (array $ proxies , int $ trustedHeaderSet )
584574 {
@@ -1527,8 +1517,6 @@ public function getProtocolVersion()
15271517 * @param bool $asResource If true, a resource will be returned
15281518 *
15291519 * @return string|resource The request body content or a resource to read the body stream
1530- *
1531- * @throws \LogicException
15321520 */
15331521 public function getContent ($ asResource = false )
15341522 {
You can’t perform that action at this time.
0 commit comments