Skip to content

Commit 255af79

Browse files
authored
Merge pull request #28 from rpkamp/fix-build
Import RuntimeException to fix phpmd error
2 parents 2be1dc7 + 67c882d commit 255af79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
"minimum-stability": "stable",
2323
"require": {
2424
"php": "^7.2",
25-
"ext-json": "*",
25+
"ext-json": "*",
2626
"php-http/client-implementation": "^1.0",
2727
"php-http/httplug": "^1.0",
2828
"php-http/message-factory": "^1.0",
2929
"psr/http-message": "^1.0"
3030
},
3131
"require-dev": {
3232
"guzzlehttp/psr7": "^1.4",
33-
"jakub-onderka/php-parallel-lint": "^0.9",
33+
"jakub-onderka/php-parallel-lint": "^1.0",
3434
"phpmd/phpmd": "^2.1.2",
3535
"phpunit/phpunit": "^8.0",
3636
"php-http/curl-client": "^1.7",
3737
"squizlabs/php_codesniffer": "^3.4",
38-
"swiftmailer/swiftmailer": "^6.0",
38+
"swiftmailer/swiftmailer": "^6.2",
3939
"phpstan/phpstan": "^0.11",
4040
"pdepend/pdepend": "^2.5",
4141
"maglnet/composer-require-checker": "^2.0"

src/MailhogClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Http\Message\RequestFactory;
99
use rpkamp\Mailhog\Message\Message;
1010
use rpkamp\Mailhog\Message\MessageFactory;
11+
use RuntimeException;
1112

1213
class MailhogClient
1314
{
@@ -128,7 +129,7 @@ public function releaseMessage(string $messageId, string $host, int $port, strin
128129
]);
129130

130131
if (false === $body) {
131-
throw new \RuntimeException(
132+
throw new RuntimeException(
132133
sprintf('Unable to JSON encode data to release message %s', $messageId)
133134
);
134135
}

0 commit comments

Comments
 (0)