Skip to content

Commit 17dae68

Browse files
author
Hayashi Takuya
authored
Merge pull request #9 from appoly/master
Fixing: Argument #1 ($array) must be of type array, null given
2 parents 5670b74 + 4213d6e commit 17dae68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"minimum-stability": "stable",
1414
"require": {
1515
"php": ">=5.6",
16-
"guzzlehttp/guzzle": "^6.3"
16+
"guzzlehttp/guzzle": "^6.3|^7.2"
1717
},
1818
"autoload": {
1919
"psr-4": { "ClickUp\\": "src/ClickUp/" }

src/ClickUp/Objects/AbstractObjectCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getByName($name)
7474
*/
7575
public function objects()
7676
{
77-
return $this->objects;
77+
return $this->objects ?? [];
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)