@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * See the class description for which kind of additional options are supported/mandatory. |
| 105 | 105 | * |
| 106 | 106 | * @param callable $handler |
| 107 | - * @return callable |
|
| 107 | + * @return \Closure |
|
| 108 | 108 | */ |
| 109 | 109 | public function __invoke(callable $handler) : callable |
| 110 | 110 | { |
@@ -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 |
@@ -403,7 +403,7 @@ |
||
| 403 | 403 | /** |
| 404 | 404 | * Attempts to create a slack\Attachment instance based on the $attachment data given. |
| 405 | 405 | * |
| 406 | - * @param mixed $attachment |
|
| 406 | + * @param callable $attachment |
|
| 407 | 407 | * @return mixed Either an instantiated slack\Attachment, or a passthrough of the input data. |
| 408 | 408 | */ |
| 409 | 409 | protected function resolveAttachment($attachment) |
@@ -160,6 +160,7 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @param callable $callback The callable to wrap. |
| 162 | 162 | * @param mixed ...$prependedArgs The arguments to prepend to the callback. |
| 163 | + * @param string $prependedArgs |
|
| 163 | 164 | * @return \Closure The wrapper. |
| 164 | 165 | */ |
| 165 | 166 | public static function partial(callable $callback, ...$prependedArgs) : \Closure |
@@ -175,6 +176,7 @@ discard block |
||
| 175 | 176 | * |
| 176 | 177 | * @param callable $callback The callable to wrap. |
| 177 | 178 | * @param mixed ...$appendedArgs The arguments to append to the callback. |
| 179 | + * @param string $appendedArgs |
|
| 178 | 180 | * @return \Closure The wrapper. |
| 179 | 181 | */ |
| 180 | 182 | public static function partialRight(callable $callback, ...$appendedArgs) : \Closure |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | /** |
| 109 | 109 | * Constructs a new GMP BigInt instance. |
| 110 | 110 | * |
| 111 | - * @param \GMP $value The GMP object holding the actual value. |
|
| 111 | + * @param resource $value The GMP object holding the actual value. |
|
| 112 | 112 | */ |
| 113 | 113 | public function __construct(\GMP $value) |
| 114 | 114 | { |
@@ -414,6 +414,10 @@ |
||
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | // Used by the when/unless tests. |
| 417 | + |
|
| 418 | + /** |
|
| 419 | + * @param boolean $exists |
|
| 420 | + */ |
|
| 417 | 421 | protected function setWhenExists($exists) |
| 418 | 422 | { |
| 419 | 423 | $this->whenExists = (bool) $exists; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * Returns the Dumper in use. |
| 128 | 128 | * |
| 129 | - * @return interfaces\Dumper|callable |
|
| 129 | + * @return interfaces\Dumper |
|
| 130 | 130 | */ |
| 131 | 131 | public static function getDumper() : interfaces\Dumper |
| 132 | 132 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * Returns a default variable dumper to be used by self::dump() if no other has been set. |
| 181 | 181 | * |
| 182 | - * @return interfaces\Dumper|callable $dumper |
|
| 182 | + * @return string $dumper |
|
| 183 | 183 | */ |
| 184 | 184 | protected static function getDefaultDumper() |
| 185 | 185 | { |
@@ -70,6 +70,7 @@ |
||
| 70 | 70 | * pass a Definition as the first argument to this method right |
| 71 | 71 | * away, in which case the default of "true" will be used). |
| 72 | 72 | * @param Definition ...$definitions The Definitions to merge with this one. |
| 73 | + * @param Definition[] $definitions |
|
| 73 | 74 | * @return Definition The merged Definition as a new instance. |
| 74 | 75 | * @throws \InvalidArgumentException When one or more of the parameters is not a Definition |
| 75 | 76 | * instance (not including the $mergeArguments bool). |