Skip to content

Commit 82dbef6

Browse files
authored
Prepare release 1.7.4 (#162)
* prepare 1.7.4 * Apply fixes from StyleCI (#163)
1 parent b7a424f commit 82dbef6

7 files changed

+12
-30
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 1.7.4 - 2020-01-03
4+
5+
### Fixed
6+
7+
- Improve conditions on Symfony's async HTTPlug client.
8+
39
## 1.7.3 - 2019-12-27
410

511
### Fixed

src/HttpAsyncClientDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public static function find()
2424
try {
2525
$asyncClient = static::findOneByType(HttpAsyncClient::class);
2626
} catch (DiscoveryFailedException $e) {
27-
throw new NotFoundException(
28-
'No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".',
29-
0,
30-
$e
31-
);
27+
throw new NotFoundException('No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e);
3228
}
3329

3430
return static::instantiateClass($asyncClient);

src/HttpClientDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public static function find()
2424
try {
2525
$client = static::findOneByType(HttpClient::class);
2626
} catch (DiscoveryFailedException $e) {
27-
throw new NotFoundException(
28-
'No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".',
29-
0,
30-
$e
31-
);
27+
throw new NotFoundException('No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e);
3228
}
3329

3430
return static::instantiateClass($client);

src/MessageFactoryDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ public static function find()
2626
try {
2727
$messageFactory = static::findOneByType(MessageFactory::class);
2828
} catch (DiscoveryFailedException $e) {
29-
throw new NotFoundException(
30-
'No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
31-
0,
32-
$e
33-
);
29+
throw new NotFoundException('No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e);
3430
}
3531

3632
return static::instantiateClass($messageFactory);

src/Psr18ClientDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public static function find()
2424
try {
2525
$client = static::findOneByType(ClientInterface::class);
2626
} catch (DiscoveryFailedException $e) {
27-
throw new \Http\Discovery\Exception\NotFoundException(
28-
'No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".',
29-
0,
30-
$e
31-
);
27+
throw new \Http\Discovery\Exception\NotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e);
3228
}
3329

3430
return static::instantiateClass($client);

src/StreamFactoryDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ public static function find()
2626
try {
2727
$streamFactory = static::findOneByType(StreamFactory::class);
2828
} catch (DiscoveryFailedException $e) {
29-
throw new NotFoundException(
30-
'No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
31-
0,
32-
$e
33-
);
29+
throw new NotFoundException('No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e);
3430
}
3531

3632
return static::instantiateClass($streamFactory);

src/UriFactoryDiscovery.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ public static function find()
2626
try {
2727
$uriFactory = static::findOneByType(UriFactory::class);
2828
} catch (DiscoveryFailedException $e) {
29-
throw new NotFoundException(
30-
'No uri factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
31-
0,
32-
$e
33-
);
29+
throw new NotFoundException('No uri factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 0, $e);
3430
}
3531

3632
return static::instantiateClass($uriFactory);

0 commit comments

Comments
 (0)