Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 6fc9cbf

Browse files
authored
Merge pull request repejota#93 from repejota/feature/fix-phpdoc-warns
Fix phpdoc warns
2 parents 1124556 + f619b2a commit 6fc9cbf

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/Nats/Connection.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ public function __construct(ConnectionOptions $options = null)
146146
* Sends data thought the stream.
147147
*
148148
* @param string $payload Message data.
149-
*
150-
* @return void
149+
* @throws \Exception
151150
*/
152151
private function send($payload)
153152
{
@@ -430,7 +429,7 @@ private function handleMSG($line)
430429
*
431430
* @param integer $quantity Number of messages to wait for.
432431
*
433-
* @return resource $connection Connection object
432+
* @return Connection $connection Connection object
434433
*/
435434
public function wait($quantity = 0)
436435
{

src/Nats/Exception.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Exception extends \Exception
1010
* Creates an Exception for a failed connection.
1111
*
1212
* @param string $response The failed error response.
13-
* @return Nats\Exception
13+
* @return \Nats\Exception
1414
*/
1515
public static function forFailedConnection($response)
1616
{
@@ -21,7 +21,7 @@ public static function forFailedConnection($response)
2121
* Creates an Exception for a failed PING response.
2222
*
2323
* @param string $response The failed PING response.
24-
* @return Nats\Exception
24+
* @return \Nats\Exception
2525
*/
2626
public static function forFailedPing($response)
2727
{
@@ -32,7 +32,7 @@ public static function forFailedPing($response)
3232
* Creates an Exception for an invalid Subscription Identifier (sid).
3333
*
3434
* @param string $subscription The Subscription Identifier (sid).
35-
* @return Nats\Exception
35+
* @return \Nats\Exception
3636
*/
3737
public static function forSubscriptionNotFound($subscription)
3838
{
@@ -43,7 +43,7 @@ public static function forSubscriptionNotFound($subscription)
4343
* Creates an Exception for an invalid Subscription Identifier (sid) callback.
4444
*
4545
* @param string $subscription The Subscription Identifier (sid).
46-
* @return Nats\Exception
46+
* @return \Nats\Exception
4747
*/
4848
public static function forSubscriptionCallbackInvalid($subscription)
4949
{
@@ -55,7 +55,7 @@ public static function forSubscriptionCallbackInvalid($subscription)
5555
*
5656
* @param string $message The system level error message.
5757
* @param integer $code The system level error code.
58-
* @return Nats\Exception
58+
* @return \Nats\Exception
5959
*/
6060
public static function forStreamSocketClientError($message, $code)
6161
{

0 commit comments

Comments
 (0)