Skip to content

Commit 8e8b525

Browse files
v0.0.36
Improve php doc
1 parent 683b87d commit 8e8b525

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kiwilan/php-notifier",
33
"description": "PHP Notifier is a package to send mails or notifications for Discord or Slack.",
4-
"version": "0.0.35",
4+
"version": "0.0.36",
55
"keywords": [
66
"notifier",
77
"slack",

src/NotifierMail.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ public static function make(): self
6161
* Set auto config to complete the missing properties.
6262
*
6363
* @param array{
64-
* mailer: string,
65-
* host: string,
66-
* port: int,
67-
* encryption: string,
68-
* username: string,
69-
* password: string,
70-
* from: Address,
71-
* to: Address[],
72-
* subject: string
73-
* } $autoConfig
64+
* mailer: mixed,
65+
* host: mixed,
66+
* port: mixed,
67+
* encryption: mixed,
68+
* username: mixed,
69+
* password: mixed,
70+
* from: ?Address,
71+
* to: Address[]|null,
72+
* subject: mixed,
73+
* }|null $autoConfig
7474
*/
75-
public function autoConfig(array $autoConfig): self
75+
public function autoConfig(?array $autoConfig): self
7676
{
7777
$this->autoConfig = $autoConfig;
7878

src/Slack/SlackAttachment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function text(string $text): self
128128
/**
129129
* Add fields to the attachment
130130
*
131-
* @param array{array{name: ?string, value: mixed, short: ?bool}} $fields Array of fields, each field should have `name` and `value`
131+
* @param array{array{name: ?string, value: mixed, short: ?bool}} $fields Array of fields, each field should have `name`, `value` and `short`
132132
*/
133133
public function fields(array $fields): self
134134
{

0 commit comments

Comments
 (0)