Skip to content

Commit

Permalink
PubNub message annotation
Browse files Browse the repository at this point in the history
PHP OpenSSL extension needed for decoding
  • Loading branch information
kirill-konshin committed Feb 26, 2019
1 parent 6cbb3f5 commit 4fbe7ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"symfony/event-dispatcher": "^2.7|^3.3.2|^4.0",
"guzzlehttp/guzzle": "^6.2.3"
},
"suggest": {
"ext-openssl": "to decrypt PubNub messages"
},
"require-dev": {
"phpunit/phpunit": "^5.7.26",
"satooshi/php-coveralls": "2.0.x-dev"
Expand Down
7 changes: 4 additions & 3 deletions src/Subscription/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PubNub\Callbacks\SubscribeCallback;
use PubNub\Enums\PNStatusCategory;
use PubNub\Exceptions\PubNubUnsubscribeException;
use PubNub\Models\Consumer\PubSub\PNMessageResult;
use PubNub\PNConfiguration;
use PubNub\PubNub;
use PubNub\PubNubCrypto;
Expand Down Expand Up @@ -62,8 +63,8 @@ function status($pubnub, $status)
}

/**
* @param $pubnub
* @param $message
* @param PubNub $pubnub
* @param PNMessageResult $message
*
* @throws Exception
*
Expand Down Expand Up @@ -437,7 +438,7 @@ public function pubnubTimeoutHandler()
/**
* Attention, this function is NOT PUBLIC!!! The only reason it's public is due to PHP 5.3 limitations
* @protected
* @param $pubnubMessage
* @param PNMessageResult $pubnubMessage
*
* @throws Exception
*
Expand Down

0 comments on commit 4fbe7ed

Please sign in to comment.