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 c4a45eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
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 c4a45eb

Please sign in to comment.