Skip to content

Commit

Permalink
Update dependencies and symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Sep 3, 2024
1 parent 704281e commit 445e09e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
15 changes: 13 additions & 2 deletions composer-require-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@
"iterable",
"callable",
"void",
"object"
"object",
"createHttpClientBuilder",
"Amp\\File\\File",
"Amp\\File\\FilesystemException",
"Amp\\File\\openFile",
"Amp\\Http\\Tunnel\\Http1TunnelConnector",
"Amp\\Http\\Tunnel\\Https1TunnelConnector",
"Amp\\Http\\Tunnel\\Socks5TunnelConnector",
"createHttpClientBuilder",
"Psr\\Http\\Message\\RequestFactoryInterface",
"Psr\\Http\\Message\\ResponseFactoryInterface"
],
"php-core-extensions": [
"Core",
Expand All @@ -23,6 +33,7 @@
"Phar",
"Reflection",
"SPL",
"standard"
"standard",
"json"
]
}
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,24 @@
"require": {
"php": ">=8.1",
"amphp/amp": "^3",
"amphp/byte-stream": "^2.1",
"amphp/dns": "^2.2",
"amphp/http-client": "^5",
"amphp/http-client-psr7": "^1",
"amphp/socket": "^2.3",
"guzzlehttp/guzzle": "^7.9",
"guzzlehttp/promises": "^2",
"guzzlehttp/psr7": "^2.7",
"psr/http-message": "^1.1",
"psr/http-factory-implementation": "^1",
"revolt/event-loop": "^1"
},
"require-dev": {
"amphp/file": "^3.0",
"amphp/http-tunnel": "^2",
"amphp/php-cs-fixer-config": "^2",
"amphp/phpunit-util": "^3",
"laminas/laminas-diactoros": "^2.3",
"leproxy/leproxy": "^0.2.2",
"guzzlehttp/guzzle": "^7",
"phpunit/phpunit": "^9",
"psalm/phar": "^5",
"revolt/event-loop-adapter-react": "^1.1"
Expand Down
4 changes: 2 additions & 2 deletions test/GuzzleHandlerAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Promise\PromiseInterface;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RedirectMiddleware;
use GuzzleHttp\RequestOptions;
use Laminas\Diactoros\Request;
use LeProxy\LeProxy\LeProxyServer;
use React\EventLoop\Loop;
use function Amp\async;
Expand Down Expand Up @@ -110,7 +110,7 @@ public function testApplicationInterceptorDefaults(): void
public function testRequestDefaults(): void
{
$promise = (new GuzzleHandlerAdapter($client = $this->createMock(DelegateHttpClient::class)))
(new Request(), []);
(new Request('GET', 'https://example.com'), []);

$client->method('request')->willReturnCallback(
function (AmpRequest $request): never {
Expand Down

0 comments on commit 445e09e

Please sign in to comment.