We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed38172 commit 0369402Copy full SHA for 0369402
1 file changed
src/AbstractJob.php
@@ -6,7 +6,7 @@ abstract class AbstractJob implements JobInterface
6
{
7
protected $method = 'GET';
8
protected $requests = [];
9
- protected $params;
+ protected $params = [];
10
11
public function __construct($params)
12
@@ -43,7 +43,7 @@ protected function setup()
43
}
44
45
// Next we need to replace any segments with our params.
46
- foreach ($this->params as $param => $value) {
+ foreach ($this->params ?? [] as $param => $value) {
47
if (is_array($value)) {
48
continue;
49
0 commit comments