@@ -401,7 +401,7 @@ |
||
| 401 | 401 | /** |
| 402 | 402 | * Attempts to create a slack\Attachment instance based on the $attachment data given. |
| 403 | 403 | * |
| 404 | - * @param mixed $attachment |
|
| 404 | + * @param callable $attachment |
|
| 405 | 405 | * @return mixed Either an instantiated slack\Attachment, or a passthrough of the input data. |
| 406 | 406 | */ |
| 407 | 407 | protected function resolveAttachment($attachment) |
@@ -705,7 +705,7 @@ |
||
| 705 | 705 | } |
| 706 | 706 | |
| 707 | 707 | throw new \InvalidArgumentException("Expected an array or an instance of ".attachment\Action::class.", got [".diagnostics\Debug::getTypeName($action)."] instead."); |
| 708 | - } |
|
| 708 | + } |
|
| 709 | 709 | |
| 710 | 710 | /** |
| 711 | 711 | * {@inheritDoc} |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | /** |
| 159 | 159 | * Converts an array of e-mail addresses into a string compliant with Postmark's API's format. |
| 160 | 160 | * |
| 161 | - * @param array $emails The e-mail addresses to convert. |
|
| 161 | + * @param string[] $emails The e-mail addresses to convert. |
|
| 162 | 162 | * @return string |
| 163 | 163 | */ |
| 164 | 164 | protected function emailsToString(array $emails) : string |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * Parses the first and only the first address from the given array of e-mail addresses into a structure |
| 153 | 153 | * understood by Sendgrid's API. |
| 154 | 154 | * |
| 155 | - * @param array $addresses The e-mail addresses to parse. |
|
| 155 | + * @param string[] $addresses The e-mail addresses to parse. |
|
| 156 | 156 | * @return array |
| 157 | 157 | */ |
| 158 | 158 | protected function processFirstAddress(array $addresses) : array |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | /** |
| 173 | 173 | * Parses the given array of e-mail addresses into a structure understood by Sendgrid's API. |
| 174 | 174 | * |
| 175 | - * @param array $addresses The e-mail addresses to parse. |
|
| 175 | + * @param string[] $addresses The e-mail addresses to parse. |
|
| 176 | 176 | * @return array |
| 177 | 177 | */ |
| 178 | 178 | protected function processAllAddresses(array $addresses) : array |