Skip to content

Add full support for PSR-18 #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Work with HTTPlug 2, drop HTTPlug 1 support
- Move to `react/http` library instead of `react/http-client`
- Add full PSR-18 support.
- Work with HTTPlug 2, drop HTTPlug 1 support.
- Move to `react/http` library instead of `react/http-client`.

## [2.3.0] - 2019-07-30

Expand Down
9 changes: 9 additions & 0 deletions src/Exception/UnexpectedValueException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Http\Adapter\React\Exception;

use Http\Client\Exception;

final class UnexpectedValueException extends \UnexpectedValueException implements Exception
{
}
2 changes: 1 addition & 1 deletion src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Http\Adapter\React;

use Http\Adapter\React\Exception\UnexpectedValueException;
use Http\Client\Exception as HttplugException;
use Http\Promise\Promise as HttpPromise;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use React\EventLoop\LoopInterface;
use React\Promise\PromiseInterface;
use RuntimeException;
use UnexpectedValueException;

/**
* React promise adapter implementation.
Expand Down
2 changes: 1 addition & 1 deletion tests/PromiseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Http\Adapter\React\Tests;

use Http\Adapter\React\Exception\UnexpectedValueException;
use Http\Adapter\React\Promise;
use Http\Adapter\React\ReactFactory;
use Http\Client\Exception\HttpException;
Expand All @@ -14,7 +15,6 @@
use Psr\Http\Message\ResponseInterface;
use React\Promise\Promise as ReactPromise;
use RuntimeException;
use UnexpectedValueException;

class PromiseTest extends TestCase
{
Expand Down