Skip to content

Commit

Permalink
phpstan level 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Jan 3, 2025
1 parent 919509c commit 6113fec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"php-http/discovery": "^1.12",
"php-http/async-client-implementation": "^1.1.0 || ^2.0",
"psr/http-client-implementation": "^1.0 || ^2.0",
"psr/http-factory": "^1.0",
"toflar/psr6-symfony-http-cache-store": "^4.2"
"psr/http-factory": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.6.0",
Expand All @@ -38,8 +37,7 @@
"php-http/mock-client": "^1.6.0",
"symfony/process": "^6.4|| ^7.0",
"symfony/http-kernel": "^6.4|| ^7.0",
"phpunit/phpunit": "^10.5",
"http-interop/http-factory-guzzle": "^0.1.0"
"phpunit/phpunit": "^10.5"
},
"conflict": {
"toflar/psr6-symfony-http-cache-store": "<2.2.1"
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 2
level: 3
paths:
- src

2 changes: 0 additions & 2 deletions src/Test/EventDispatchingHttpCacheTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ public function testPreInvalidateCalled(): void
$testListener = new TestListener($this, $httpCache, $request);
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
$httpCache->addSubscriber($testListener);
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
$httpCache
->method('pass')
->with($request)
Expand Down Expand Up @@ -311,7 +310,6 @@ public function testPreInvalidateReturnEarly(): void
$testListener->preInvalidateResponse = $response;
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
$httpCache->addSubscriber($testListener);
$this->assertTrue(method_exists($httpCache, 'addSubscriber'));
$httpCache
->expects($this->never())
->method('pass')
Expand Down
2 changes: 1 addition & 1 deletion src/Test/WebServerSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function startPhpWebServer(): int

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

return $output[0];
return (int) $output[0];
}

public function getHostName(): string
Expand Down

0 comments on commit 6113fec

Please sign in to comment.