Skip to content

Commit 53be939

Browse files
authored
Merge pull request #68 from nicolasbeauvais/patch-1
Fix support for monospace and html parameters
2 parents 68697f8 + 45cbee1 commit 53be939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PushoverMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ public function toArray(): array
363363
'image' => $this->image,
364364
'retry' => $this->retry,
365365
'expire' => $this->expire,
366-
'html' => $this->format === static::FORMAT_HTML,
367-
'monospace' => $this->format === static::FORMAT_MONOSPACE,
366+
'html' => $this->format === static::FORMAT_HTML ? 1 : 0,
367+
'monospace' => $this->format === static::FORMAT_MONOSPACE ? 1 : 0,
368368
'callback' => $this->callback,
369369
];
370370
}

0 commit comments

Comments
 (0)