Skip to content

Commit b860278

Browse files
committed
Make deprecation notice opt-in
1 parent 3ffac56 commit b860278

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
$this->responseFactory = $responseFactory ?? MessageFactoryDiscovery::find();
3434

3535
if ($streamFactory !== null || \func_num_args() === 3) {
36-
\trigger_error('The $streamFactory parameter is deprecated and ignored.', \E_USER_DEPRECATED);
36+
@\trigger_error('The $streamFactory parameter is deprecated and ignored.', \E_USER_DEPRECATED);
3737
}
3838
}
3939

tests/ClientTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Http\Adapter\Artax\Client;
77
use Http\Client\HttpClient;
88
use Http\Client\Tests\HttpClientTest;
9-
use Http\Message\StreamFactory;
109

1110
class ClientTest extends HttpClientTest
1211
{

0 commit comments

Comments
 (0)