Skip to content

Commit 096177c

Browse files
authored
Merge pull request #166 from netglue/dependencies
Add support for PHP 8.5
2 parents b6cd634 + c752d37 commit 096177c

File tree

5 files changed

+19
-24
lines changed

5 files changed

+19
-24
lines changed

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"php": "~8.2.0 || ~8.3 || ~8.4",
15+
"php": "~8.2.0 || ~8.3 || ~8.4 || ~8.5",
1616
"ext-json": "*",
1717
"php-http/discovery": "^1.14.1",
1818
"psr/http-client": "^1.0",
@@ -24,16 +24,16 @@
2424
"require-dev": {
2525
"ext-curl": "*",
2626
"doctrine/coding-standard": "^14.0",
27-
"infection/infection": "^0.32.0",
28-
"laminas/laminas-diactoros": "^3.6.0",
29-
"php-http/curl-client": "^2.3.3",
30-
"phpunit/phpunit": "^11.5.42",
27+
"infection/infection": "^0.32.3",
28+
"laminas/laminas-diactoros": "^3.8.0",
29+
"php-http/curl-client": "^2.4.0",
30+
"phpunit/phpunit": "^11.5.52 || ^12",
3131
"psalm/plugin-phpunit": "^0.19.5",
32-
"react/child-process": "^0.6.6",
32+
"react/child-process": "^0.6.7",
3333
"react/http": "^1.11",
3434
"roave/security-advisories": "dev-latest",
35-
"squizlabs/php_codesniffer": "^4.0.0",
36-
"vimeo/psalm": "^6.13.1"
35+
"squizlabs/php_codesniffer": "^4.0.1",
36+
"vimeo/psalm": "^6.15.1"
3737
},
3838
"conflict": {
3939
"php-http/httplug": "<2.4.1",

composer.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
5-
displayDetailsOnIncompleteTests="true"
6-
displayDetailsOnSkippedTests="true"
7-
displayDetailsOnTestsThatTriggerDeprecations="true"
8-
displayDetailsOnTestsThatTriggerErrors="true"
9-
displayDetailsOnTestsThatTriggerNotices="true"
10-
displayDetailsOnTestsThatTriggerWarnings="true"
11-
displayDetailsOnPhpunitDeprecations="true"
5+
displayDetailsOnAllIssues="true"
126
failOnWarning="true"
137
failOnNotice="true"
148
failOnDeprecation="true"

test/Unit/Exception/RequestFailureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ public function testPsrErrorWillHaveTheExpectedCode(): void
2424
{
2525
$error = RequestFailure::withPsrError(
2626
new Request('/foo'),
27-
$this->createMock(ClientExceptionInterface::class),
27+
$this->createStub(ClientExceptionInterface::class),
2828
);
2929

3030
self::assertEquals(0, $error->getCode());
3131
}
3232

3333
public function testPsrErrorWillReferencePreviousException(): void
3434
{
35-
$exception = $this->createMock(ClientExceptionInterface::class);
35+
$exception = $this->createStub(ClientExceptionInterface::class);
3636
$error = RequestFailure::withPsrError(
3737
new Request('/foo'),
3838
$exception,

test/Unit/Exception/UnexpectedStatusCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function testThatTheExpectedCodeIsReported(): void
1515
{
1616
$error = UnexpectedStatusCode::withExpectedCode(
1717
123,
18-
$this->createMock(ServerRequestInterface::class),
18+
$this->createStub(ServerRequestInterface::class),
1919
new TextResponse('Foo', 234),
2020
);
2121

0 commit comments

Comments
 (0)