Skip to content

Commit

Permalink
Merge pull request #17 from redssu/typed-properties
Browse files Browse the repository at this point in the history
Typed properties
  • Loading branch information
MSnoeren authored Nov 7, 2024
2 parents c9dcb84 + 6a9b285 commit 40eab83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/DiscordMessage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
declare(strict_types = 1);
declare(strict_types=1);

namespace SnoerenDevelopment\DiscordWebhook;

Expand All @@ -10,30 +10,30 @@ class DiscordMessage implements Arrayable
/**
* The message content.
*
* @var string
* @var string|null
*/
protected $content;
protected string|null $content = null;

/**
* The username.
*
* @var string
* @var string|null
*/
protected $username;
protected string|null $username = null;

/**
* The avatar URL.
*
* @var string
* @var string|null
*/
protected $avatarUrl;
protected string|null $avatarUrl = null;

/**
* Indicates that this is a Text-to-speech message.
*
* @var boolean
* @var boolean|null
*/
protected $tts;
protected bool|null $tts = null;

/**
* Create a new Discord message instance.
Expand Down
2 changes: 1 addition & 1 deletion src/DiscordWebhookChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DiscordWebhookChannel
*
* @var \GuzzleHttp\Client
*/
protected $http;
protected Client $http;

/**
* Constructor
Expand Down

0 comments on commit 40eab83

Please sign in to comment.