Skip to content

Commit 6113fec

Browse files
committed
phpstan level 3
1 parent 919509c commit 6113fec

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Diff for: composer.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"php-http/discovery": "^1.12",
2929
"php-http/async-client-implementation": "^1.1.0 || ^2.0",
3030
"psr/http-client-implementation": "^1.0 || ^2.0",
31-
"psr/http-factory": "^1.0",
32-
"toflar/psr6-symfony-http-cache-store": "^4.2"
31+
"psr/http-factory": "^1.0"
3332
},
3433
"require-dev": {
3534
"mockery/mockery": "^1.6.0",
@@ -38,8 +37,7 @@
3837
"php-http/mock-client": "^1.6.0",
3938
"symfony/process": "^6.4|| ^7.0",
4039
"symfony/http-kernel": "^6.4|| ^7.0",
41-
"phpunit/phpunit": "^10.5",
42-
"http-interop/http-factory-guzzle": "^0.1.0"
40+
"phpunit/phpunit": "^10.5"
4341
},
4442
"conflict": {
4543
"toflar/psr6-symfony-http-cache-store": "<2.2.1"

Diff for: phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 2
2+
level: 3
33
paths:
44
- src
55

Diff for: src/Test/EventDispatchingHttpCacheTestCase.php

-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ public function testPreInvalidateCalled(): void
282282
$testListener = new TestListener($this, $httpCache, $request);
283283
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
284284
$httpCache->addSubscriber($testListener);
285-
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
286285
$httpCache
287286
->method('pass')
288287
->with($request)
@@ -311,7 +310,6 @@ public function testPreInvalidateReturnEarly(): void
311310
$testListener->preInvalidateResponse = $response;
312311
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
313312
$httpCache->addSubscriber($testListener);
314-
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
315313
$httpCache
316314
->expects($this->never())
317315
->method('pass')

Diff for: src/Test/WebServerSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function startPhpWebServer(): int
8383

8484
$this->waitFor($this->getHostName(), (int) $this->getPort(), 2000);
8585

86-
return $output[0];
86+
return (int) $output[0];
8787
}
8888

8989
public function getHostName(): string

0 commit comments

Comments
 (0)