Skip to content

Commit 10d10d0

Browse files
[FIX] Return types for Emails attachments
1 parent 6d9f005 commit 10d10d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AdminResources/Emails.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function get(array $params = []): array
145145
/**
146146
* @throws Exception
147147
*/
148-
public function find(string $id): MsGraphAdmin
148+
public function find(string $id): array
149149
{
150150
if ($this->userId == null) {
151151
throw new Exception('userid is required.');
@@ -154,7 +154,7 @@ public function find(string $id): MsGraphAdmin
154154
return MsGraphAdmin::get('users/'.$this->userId.'/messages/'.$id);
155155
}
156156

157-
public function findAttachments(string $id): MsGraphAdmin
157+
public function findAttachments(string $id): array
158158
{
159159
return MsGraphAdmin::get('users/'.$this->userId.'/messages/'.$id.'/attachments');
160160
}

0 commit comments

Comments
 (0)