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)
129
129
* @param string $json
130
130
*
131
131
* @return $this
132
- *
133
- * @throws \InvalidArgumentException
134
132
*/
135
133
public function setJson ($ json )
136
134
{
Original file line number Diff line number Diff line change @@ -504,15 +504,7 @@ public function __clone()
504
504
*/
505
505
public function __toString ()
506
506
{
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 ();
516
508
517
509
$ cookieHeader = '' ;
518
510
$ cookies = [];
@@ -577,8 +569,6 @@ public function overrideGlobals()
577
569
*
578
570
* @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
579
571
* @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
582
572
*/
583
573
public static function setTrustedProxies (array $ proxies , int $ trustedHeaderSet )
584
574
{
@@ -1527,8 +1517,6 @@ public function getProtocolVersion()
1527
1517
* @param bool $asResource If true, a resource will be returned
1528
1518
*
1529
1519
* @return string|resource The request body content or a resource to read the body stream
1530
- *
1531
- * @throws \LogicException
1532
1520
*/
1533
1521
public function getContent ($ asResource = false )
1534
1522
{
You can’t perform that action at this time.
0 commit comments