Skip to content

Commit 3594912

Browse files
committed
feat: increate to type coverage level 13, user RectorBcLibrary set for BC changes
1 parent 72dbf34 commit 3594912

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.rector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
//->withPhpSets()
1414
->withPhp74Sets()
1515
->withPhpVersion(70400)
16-
->withTypeCoverageLevel(1)
16+
->withTypeCoverageLevel(13)
1717
->withPreparedSets(
1818
true,
1919
true
2020
)
21+
->withSets([
22+
\Art4\RectorBcLibrary\Set::SET,
23+
])
2124
;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"psr/http-factory": "^1.0"
3131
},
3232
"require-dev": {
33+
"art4/rector-bc-library": "dev-main",
3334
"behat/behat": "^3.14",
3435
"friendsofphp/php-cs-fixer": "^3.68",
3536
"guzzlehttp/psr7": "^2",

tests/Integration/Psr18ClientRequestGenerationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testPsr18ClientCreatesCorrectRequests(
6565
});
6666

6767
$requestFactory = $this->createMock(RequestFactoryInterface::class);
68-
$requestFactory->method('createRequest')->willReturnCallback(fn($method, $uri) => new Request($method, $uri));
68+
$requestFactory->method('createRequest')->willReturnCallback(fn($method, $uri): \GuzzleHttp\Psr7\Request => new Request($method, $uri));
6969

7070
$streamFactory = new class implements StreamFactoryInterface {
7171
public function createStream(string $content = ''): StreamInterface

0 commit comments

Comments
 (0)