Skip to content

Commit b0c12bb

Browse files
authored
Merge pull request #7 from laravel-notification-channels/dev
Add Laravel 8 support
2 parents 11e4f4e + 81d5e84 commit b0c12bb

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.2",
16-
"illuminate/notifications": "^6.0|^7.0",
17-
"illuminate/support": "^6.0|^7.0",
15+
"php": "^7.2|^8.0",
16+
"illuminate/notifications": "^6.0|^7.0|^8.0",
17+
"illuminate/support": "^6.0|^7.0|^8.0",
1818
"interfax/interfax": "^1.1"
1919
},
2020
"require-dev": {
2121
"mockery/mockery": "^1.0",
2222
"mpdf/mpdf": "^8.0",
23-
"orchestra/testbench": "~4.0|~5.0",
24-
"phpunit/phpunit": "^8.0"
23+
"orchestra/testbench": "~4.0|~5.0|~6.0",
24+
"phpunit/phpunit": "^8.0|^9.3.3"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/InterfaxChannel.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ public function send($notifiable, Notification $notification)
3636
'files' => $message->makeFiles(),
3737
]);
3838

39-
if ($message->shouldCheckStatus()):
40-
39+
if ($message->shouldCheckStatus()) {
4140
while ($fax->refresh()->status < 0) {
4241
sleep(config('services.interfax.interval', 15));
4342
}
4443

45-
if ($fax->refresh()->status > 0) {
46-
throw CouldNotSendNotification::serviceRespondedWithAnError($message, $fax->refresh()->attributes());
44+
if ($fax->refresh()->status > 0) {
45+
throw CouldNotSendNotification::serviceRespondedWithAnError($message, $fax->refresh()->attributes());
46+
}
4747
}
48-
endif;
4948
}
5049
}

0 commit comments

Comments
 (0)