Skip to content

Commit d56efbc

Browse files
committed
Check the response from examineFolder to check if any data was returned
1 parent a064414 commit d56efbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Folder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ public function getStatus(): array {
433433
* @throws Exceptions\RuntimeException
434434
*/
435435
public function examine(): array {
436-
return $this->client->getConnection()->examineFolder($this->path);
436+
$result = $this->client->getConnection()->examineFolder($this->path);
437+
return is_array($result) ? $result : [];
437438
}
438439

439440
/**

0 commit comments

Comments
 (0)