Skip to content

Commit 3da60b1

Browse files
committed
Add Laravel 6 compatibility
1 parent 68a7db8 commit 3da60b1

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build
22
composer.lock
33
docs
44
vendor
5-
coverage
5+
coverage
6+
.phpunit.result.cache

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
],
1818
"require": {
1919
"php": "^7.1",
20-
"illuminate/container": "^5.7|^5.8",
21-
"illuminate/database": "^5.7|^5.8",
22-
"illuminate/log": "^5.7|^5.8",
23-
"illuminate/routing": "^5.7|^5.8",
24-
"illuminate/support": "^5.7|^5.8",
20+
"illuminate/container": "^5.7|^5.8|^6.0",
21+
"illuminate/database": "^5.7|^5.8|^6.0",
22+
"illuminate/log": "^5.7|^5.8|^6.0",
23+
"illuminate/routing": "^5.7|^5.8|^6.0",
24+
"illuminate/support": "^5.7|^5.8|^6.0",
2525
"willdurand/email-reply-parser": "^2.8",
2626
"zbateson/mail-mime-parser": "^1.1"
2727
},
2828
"require-dev": {
2929
"mockery/mockery": "^1.2",
30-
"orchestra/testbench": "^3.7|^3.8",
31-
"phpunit/phpunit": "^7.0",
30+
"orchestra/testbench": "^3.7|^3.8|^4.0",
31+
"phpunit/phpunit": "^7.0|^8.0",
3232
"zendframework/zend-mail": "^2.10"
3333
},
3434
"autoload": {

src/InboundEmail.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use EmailReplyParser\EmailReplyParser;
99
use Illuminate\Contracts\Mail\Mailable;
1010
use Illuminate\Database\Eloquent\Model;
11+
use Illuminate\Support\Str;
1112
use ZBateson\MailMimeParser\Header\AddressHeader;
1213
use ZBateson\MailMimeParser\Message as MimeMessage;
1314
use ZBateson\MailMimeParser\Header\Part\AddressPart;
@@ -42,7 +43,7 @@ public static function fromMessage($message)
4243

4344
public function id(): string
4445
{
45-
return $this->message()->getHeaderValue('Message-Id', str_random());
46+
return $this->message()->getHeaderValue('Message-Id', Str::random());
4647
}
4748

4849
public function date(): Carbon

0 commit comments

Comments
 (0)