Skip to content

Commit c8926f9

Browse files
committed
Bump version to 1.1.2
1 parent 69001aa commit c8926f9

5 files changed

Lines changed: 23 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and 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

composer.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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
}

src/PushNotifications.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* http://www.pusher.com/push-notifications
1111
*/
1212
class 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])+$/";

tests/InterestsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"],

tests/UsersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)