File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Illuminate/Http/Client Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -575,10 +575,10 @@ public function sink($to)
575
575
/**
576
576
* Specify the timeout (in seconds) for the request.
577
577
*
578
- * @param int $seconds
578
+ * @param int|float $seconds
579
579
* @return $this
580
580
*/
581
- public function timeout (int $ seconds )
581
+ public function timeout (int | float $ seconds )
582
582
{
583
583
return tap ($ this , function () use ($ seconds ) {
584
584
$ this ->options ['timeout ' ] = $ seconds ;
@@ -588,10 +588,10 @@ public function timeout(int $seconds)
588
588
/**
589
589
* Specify the connect timeout (in seconds) for the request.
590
590
*
591
- * @param int $seconds
591
+ * @param int|float $seconds
592
592
* @return $this
593
593
*/
594
- public function connectTimeout (int $ seconds )
594
+ public function connectTimeout (int | float $ seconds )
595
595
{
596
596
return tap ($ this , function () use ($ seconds ) {
597
597
$ this ->options ['connect_timeout ' ] = $ seconds ;
You can’t perform that action at this time.
0 commit comments