File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
66
77## [ Unreleased]
8+
9+ ## [ 1.1.2] - 2020-10-23
810 ### Changed
911 - Replaced ` array_key_exists ` with ` property_exists ` for compatibility with
1012 PHP 7.3
Original file line number Diff line number Diff line change 11{
2- "name" : " pusher/pusher-push-notifications" ,
3- "version" : " 1.1.1 " ,
4- "license" : " MIT" ,
5- "require" : {
6- "php" : " >=5.6.0" ,
7- "guzzlehttp/guzzle" : " ~6.0 || ~7.0" ,
8- "firebase/php-jwt" : " ^5.0"
9- },
10- "require-dev" : {
11- "phpunit/phpunit" : " ~5.7.0" ,
12- "symfony/yaml" : " ~3.0" ,
13- "doctrine/instantiator" : " 1.0.5"
14- },
15- "autoload" : {
16- "psr-4" : {"Pusher\\ PushNotifications\\ " : " src/" }
17- }
2+ "name" : " pusher/pusher-push-notifications" ,
3+ "version" : " 1.1.2 " ,
4+ "license" : " MIT" ,
5+ "require" : {
6+ "php" : " >=5.6.0" ,
7+ "guzzlehttp/guzzle" : " ~6.0 || ~7.0" ,
8+ "firebase/php-jwt" : " ^5.0"
9+ },
10+ "require-dev" : {
11+ "phpunit/phpunit" : " ~5.7.0" ,
12+ "symfony/yaml" : " ~3.0" ,
13+ "doctrine/instantiator" : " 1.0.5"
14+ },
15+ "autoload" : {
16+ "psr-4" : {"Pusher\\ PushNotifications\\ " : " src/" }
17+ }
1818}
Original file line number Diff line number Diff line change 1010 * http://www.pusher.com/push-notifications
1111 */
1212class PushNotifications {
13- const SDK_VERSION = "1.1.0 " ;
13+ const SDK_VERSION = "1.1.2 " ;
1414 const MAX_INTERESTS = 100 ;
1515 const MAX_INTEREST_LENGTH = 164 ;
1616 const INTEREST_REGEX = "/^(_|-|=|@|,| \\.|;|[A-Z]|[a-z]|[0-9])+$/ " ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function testPublishToInterestsShouldMakeRequestIfValid() {
5050 $ expectedHost = "a11aec92-146a-4708-9a62-8c61f46a82ad.pushnotifications.pusher.com " ;
5151 $ expectedContentType = "application/json " ;
5252 $ expectedAuth = "Bearer EIJ2EESAH8DUUMAI8EE " ;
53- $ expectedSDK = "pusher-push-notifications-php 1.1.0 " ;
53+ $ expectedSDK = "pusher-push-notifications-php 1.1.2 " ;
5454
5555 $ expectedBody = [
5656 "interests " => ["donuts " ],
@@ -140,7 +140,7 @@ public function testPublishShouldAliasPublishToInterests() {
140140 $ expectedHost = "a11aec92-146a-4708-9a62-8c61f46a82ad.pushnotifications.pusher.com " ;
141141 $ expectedContentType = "application/json " ;
142142 $ expectedAuth = "Bearer EIJ2EESAH8DUUMAI8EE " ;
143- $ expectedSDK = "pusher-push-notifications-php 1.1.0 " ;
143+ $ expectedSDK = "pusher-push-notifications-php 1.1.2 " ;
144144
145145 $ expectedBody = [
146146 "interests " => ["donuts " ],
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function testPublishToUsersShouldMakeRequestIfValid() {
5151 $ expectedHost = "a11aec92-146a-4708-9a62-8c61f46a82ad.pushnotifications.pusher.com " ;
5252 $ expectedContentType = "application/json " ;
5353 $ expectedAuth = "Bearer EIJ2EESAH8DUUMAI8EE " ;
54- $ expectedSDK = "pusher-push-notifications-php 1.1.0 " ;
54+ $ expectedSDK = "pusher-push-notifications-php 1.1.2 " ;
5555
5656 $ expectedBody = [
5757 "users " => ["user-0001 " ],
@@ -464,7 +464,7 @@ public function testDeleteUserShouldMakeRequestIfValid() {
464464 $ expectedHost = "a11aec92-146a-4708-9a62-8c61f46a82ad.pushnotifications.pusher.com " ;
465465 $ expectedContentType = "application/json " ;
466466 $ expectedAuth = "Bearer EIJ2EESAH8DUUMAI8EE " ;
467- $ expectedSDK = "pusher-push-notifications-php 1.1.0 " ;
467+ $ expectedSDK = "pusher-push-notifications-php 1.1.2 " ;
468468
469469 $ request = $ container [0 ]["request " ];
470470 $ this ->assertNotNull ($ request , "Request should not be null " );
You can’t perform that action at this time.
0 commit comments