Skip to content

Commit 78beb47

Browse files
committed
integer conversion added
1 parent b88f33f commit 78beb47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ protected function fetchAttachment($structure, $partNumber){
450450
* @return $this
451451
*/
452452
public function setFetchOption($option){
453+
$option = (integer)$option;
453454
if(is_long($option) == true){
454455
$this->fetch_options = $option;
455456
}elseif(is_null($option) == true){

0 commit comments

Comments
 (0)