Skip to content

Commit 8c854c6

Browse files
committed
Remove rules
1 parent 14b31c2 commit 8c854c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* @method Response put(string $url, array $data = [])
7070
* @method Response send(string $method, string $url, array $options = [])
7171
*
72-
* @see PendingRequest
72+
* @mixin PendingRequest
7373
*/
7474
class Factory
7575
{

src/PendingRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class PendingRequest
130130
/**
131131
* A callback to run when throwing if a server or client error occurs.
132132
*
133-
* @var Closure
133+
* @var Closure|null
134134
*/
135135
protected $throwCallback;
136136

@@ -156,7 +156,7 @@ class PendingRequest
156156
/**
157157
* The number of milliseconds to wait between retries.
158158
*
159-
* @var Closure|int
159+
* @var Closure|int|null
160160
*/
161161
protected $retryDelay = 100;
162162

@@ -1381,7 +1381,7 @@ protected function parseRequestData($method, $url, array $options)
13811381
if (is_string($laravelData)) {
13821382
parse_str($laravelData, $parsedData);
13831383

1384-
$laravelData = is_array($parsedData) ? $parsedData : [];
1384+
$laravelData = is_array($parsedData) && ! empty($parsedData) ? $parsedData : [];
13851385
}
13861386

13871387
if ($laravelData instanceof JsonSerializable) {

0 commit comments

Comments
 (0)