Skip to content

Commit 9e8b621

Browse files
committed
fix accessed before initialization to property
1 parent 348d5c0 commit 9e8b621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DiscordWebhook/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function send(): bool
6565
/** @var ArrayCollection|int[] $responseCodes */
6666
$responseCodes = new ArrayCollection();
6767

68-
if ($this->getFile() !== null && $this->embeds->count() > 0) {
68+
if (isset($this->file) && $this->embeds->count() > 0) {
6969
throw new RuntimeException('Cannot use embeds and files in the same Webhook.');
7070
}
7171

0 commit comments

Comments
 (0)