Skip to content

Commit 0369402

Browse files
committed
Handle empty params
1 parent ed38172 commit 0369402

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AbstractJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ abstract class AbstractJob implements JobInterface
66
{
77
protected $method = 'GET';
88
protected $requests = [];
9-
protected $params;
9+
protected $params = [];
1010

1111
public function __construct($params)
1212
{
@@ -43,7 +43,7 @@ protected function setup()
4343
}
4444

4545
// Next we need to replace any segments with our params.
46-
foreach ($this->params as $param => $value) {
46+
foreach ($this->params ?? [] as $param => $value) {
4747
if (is_array($value)) {
4848
continue;
4949
}

0 commit comments

Comments
 (0)