Skip to content

Commit e06da9d

Browse files
committed
Use traits
1 parent d7f2e34 commit e06da9d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Plugin/VersionBridgePlugin.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Http\Client\Common\Plugin;
44

5-
use Http\Client\Common\Plugin;
65
use Http\Promise\Promise;
76
use Psr\Http\Message\RequestInterface;
87

@@ -12,7 +11,7 @@
1211
*
1312
* @author Tobias Nyholm <[email protected]>
1413
*/
15-
abstract class VersionBridgePlugin implements Plugin
14+
trait VersionBridgePlugin
1615
{
1716
abstract protected function doHandleRequest(RequestInterface $request, callable $next, callable $first);
1817

src/VersionBridgeClient.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Http\Client\Common;
44

5-
use Http\Client\HttpClient;
65
use Psr\Http\Message\RequestInterface;
76
use Psr\Http\Message\ResponseInterface;
87

@@ -12,7 +11,7 @@
1211
*
1312
* @author Tobias Nyholm <[email protected]>
1413
*/
15-
abstract class VersionBridgeClient implements HttpClient
14+
trait VersionBridgeClient
1615
{
1716
abstract protected function doSendRequest(RequestInterface $request);
1817

0 commit comments

Comments
 (0)