Skip to content

Commit a20c558

Browse files
AshPowellLKaemmerling
authored andcommitted
Allow Laravel 6 (#98)
1 parent d9a8250 commit a20c558

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
64
- 7.2
5+
- 7.3
76

87
env:
98
matrix:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All Notable changes to `onesignal` will be documented in this file
44

5+
## 2.0.0 - Not released yet
6+
- Add compatibility for Laravel 6
7+
- Remove testing on old PHP versions (7.0,7.1) and test on 7.3
8+
59
## 2.0.0-RC2 - 2019-02-07
610
- Update the underlying **berkayk/onesignal-laravel** Package to v1.0.1 ([#60](https://github.com/laravel-notification-channels/onesignal/pull/60))
711

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
}
2626
],
2727
"require": {
28-
"php": ">=7.0.0",
28+
"php": "^7.2.0",
2929
"berkayk/onesignal-laravel": "^1.0.0",
30-
"illuminate/notifications": "5.*",
31-
"illuminate/support": "5.*"
30+
"illuminate/notifications": "5.*|^6.0",
31+
"illuminate/support": "5.*|^6.0"
3232
},
3333
"require-dev": {
3434
"mockery/mockery": "^1.0",
35-
"orchestra/testbench": "^3.5",
36-
"phpunit/phpunit": "^6.4"
35+
"orchestra/testbench": "^4.0",
36+
"phpunit/phpunit": "^8.0"
3737
},
3838
"autoload": {
3939
"psr-4": {

tests/ChannelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class ChannelTest extends TestCase
1818
/** @var \NotificationChannels\OneSignal\OneSignalChannel */
1919
protected $channel;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
parent::setUp();
2424
$this->oneSignal = Mockery::mock(OneSignalClient::class);
2525

2626
$this->channel = new OneSignalChannel($this->oneSignal);
2727
}
2828

29-
public function tearDown()
29+
public function tearDown(): void
3030
{
3131
Mockery::close();
3232
parent::tearDown();

tests/MessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MessageTest extends \PHPUnit\Framework\TestCase
1212
/** @var \NotificationChannels\OneSignal\OneSignalMessage */
1313
protected $message;
1414

15-
public function setUp()
15+
public function setUp(): void
1616
{
1717
parent::setUp();
1818
$this->message = new OneSignalMessage();

0 commit comments

Comments
 (0)