Skip to content

Commit 057ae36

Browse files
committed
Fix return type
1 parent 492f71a commit 057ae36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function paginate(int $perPage = 5, $page = null, string $pageName = 'pag
254254
/**
255255
* Find a message by the given identifier type or throw an exception.
256256
*/
257-
public function findOrFail(int $id, ImapFetchIdentifier $identifier = ImapFetchIdentifier::Uid)
257+
public function findOrFail(int $id, ImapFetchIdentifier $identifier = ImapFetchIdentifier::Uid): MessageInterface
258258
{
259259
/** @var UntaggedResponse $response */
260260
$response = $this->uid($id, $identifier)->firstOrFail();

0 commit comments

Comments
 (0)