Skip to content

Commit f56d415

Browse files
Update SA tooling and support for symfony/options-resolver:^7.0
1 parent b03fa20 commit f56d415

File tree

10 files changed

+21
-17
lines changed

10 files changed

+21
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [11.13.0] - UPCOMING
9+
10+
* Add support for `symfony/options-resolver:^7.0`
11+
812
## [11.12.0] - 2023-10-08
913

1014
* Add PHP 8.3 support

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
"php": "^7.4.15 || ^8.0.2",
3030
"ext-json": "*",
3131
"ext-xml": "*",
32-
"php-http/cache-plugin": "^1.8",
33-
"php-http/client-common": "^2.7",
34-
"php-http/discovery": "^1.19",
32+
"php-http/cache-plugin": "^1.8.1",
33+
"php-http/client-common": "^2.7.1",
34+
"php-http/discovery": "^1.19.2",
3535
"php-http/httplug": "^2.4",
3636
"php-http/multipart-stream-builder": "^1.3",
3737
"psr/cache": "^1.0 || ^2.0 || ^3.0",
3838
"psr/http-client-implementation": "^1.0",
3939
"psr/http-factory-implementation": "^1.0",
4040
"psr/http-message": "^1.1 || ^2.0",
41-
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
41+
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0",
4242
"symfony/polyfill-php80": "^1.26"
4343
},
4444
"require-dev": {

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ includes:
77
rules:
88
- Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule
99
- Ergebnis\PHPStan\Rules\Expressions\NoCompactRule
10-
- Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule
1110
- Ergebnis\PHPStan\Rules\Expressions\NoEvalRule
1211
- Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule
1312
- Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
33
<testsuites>
44
<testsuite name="Test Suite">
55
<directory suffix="Test.php">./tests</directory>
66
</testsuite>
77
</testsuites>
8-
<coverage>
8+
<source>
99
<include>
1010
<directory suffix=".php">./src</directory>
1111
</include>
12-
</coverage>
12+
</source>
1313
</phpunit>

psalm-baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.7.6@ae4ec68e00e4880e3f00b1edd2da891236d749ab">
2+
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
33
<file src="src/Api/AbstractApi.php">
44
<InvalidArgument>
55
<code><![CDATA[function () use ($filename, $mode, &$ex): void {

src/HttpClient/Plugin/Authentication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Http\Client\Common\Plugin;
2020
use Http\Promise\Promise;
2121
use Psr\Http\Message\RequestInterface;
22+
use Psr\Http\Message\ResponseInterface;
2223

2324
/**
2425
* Add authentication to the request.
@@ -54,7 +55,7 @@ public function __construct(string $method, string $token, string $sudo = null)
5455
* @param callable $next
5556
* @param callable $first
5657
*
57-
* @return Promise
58+
* @return Promise<ResponseInterface>
5859
*/
5960
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
6061
{

src/HttpClient/Plugin/ExceptionThrower.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class ExceptionThrower implements Plugin
4242
* @param callable $next
4343
* @param callable $first
4444
*
45-
* @return Promise
45+
* @return Promise<ResponseInterface>
4646
*/
4747
public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
4848
{

vendor-bin/phpstan/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"require": {
33
"php": "^8.1",
4-
"phpstan/phpstan": "1.10.3",
5-
"phpstan/phpstan-deprecation-rules": "1.1.2",
6-
"phpstan/phpstan-strict-rules": "1.5.0",
4+
"phpstan/phpstan": "1.10.47",
5+
"phpstan/phpstan-deprecation-rules": "1.1.4",
6+
"phpstan/phpstan-strict-rules": "1.5.2",
77
"thecodingmachine/phpstan-strict-rules": "1.0.0",
8-
"ergebnis/phpstan-rules": "1.0.0"
8+
"ergebnis/phpstan-rules": "2.1.0"
99
},
1010
"config": {
1111
"preferred-install": "dist"

vendor-bin/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4.15 || ^8.0.2",
4-
"phpunit/phpunit": "^9.6.3 || ^10.0.12"
4+
"phpunit/phpunit": "^9.6.15 || ^10.5.1"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^8.1",
4-
"psalm/phar": "5.7.6"
4+
"psalm/phar": "5.16.0"
55
},
66
"config": {
77
"preferred-install": "dist"

0 commit comments

Comments
 (0)