Skip to content

Commit 88e93d0

Browse files
committed
Added support for Laravel 5.8
1 parent 72c6e17 commit 88e93d0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
"require": {
1414
"php": ">=7.0",
1515
"alymosul/exponent-server-sdk-php": "1.1.*",
16-
"illuminate/config": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
17-
"illuminate/notifications": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
18-
"illuminate/support": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
19-
"illuminate/events": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
20-
"illuminate/queue": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
21-
"illuminate/http": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
22-
"illuminate/routing": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
23-
"illuminate/validation": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*",
24-
"illuminate/auth": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*"
16+
"illuminate/config": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
17+
"illuminate/notifications": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
18+
"illuminate/support": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
19+
"illuminate/events": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
20+
"illuminate/queue": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
21+
"illuminate/http": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
22+
"illuminate/routing": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
23+
"illuminate/validation": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
24+
"illuminate/auth": "5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*"
2525
},
2626
"require-dev": {
2727
"mockery/mockery": "^0.9.5",

src/ExpoChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function send($notifiable, Notification $notification)
5555
true
5656
);
5757
} catch (ExpoException $e) {
58-
$this->events->fire(
58+
$this->events->dispatch(
5959
new NotificationFailed($notifiable, $notification, 'expo-push-notifications', $e->getMessage())
6060
);
6161
}

tests/ChannelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function itFiresFailureEventOnFailure()
8282

8383
$this->expo->shouldReceive('notify')->with('interest_name', $data, true)->andThrow(ExpoException::class, '');
8484

85-
$this->events->shouldReceive('fire')->with(Mockery::type(NotificationFailed::class));
85+
$this->events->shouldReceive('dispatch')->with(Mockery::type(NotificationFailed::class));
8686

8787
$this->channel->send($this->notifiable, $this->notification);
8888
}

0 commit comments

Comments
 (0)