Skip to content

Commit 717ca73

Browse files
committed
Fix build
1 parent e6103f3 commit 717ca73

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ parameters:
4545
count: 1
4646
path: src/Command/FixerApplication.php
4747

48+
-
49+
message: "#^Call to an undefined method React\\\\Promise\\\\PromiseInterface\\<Psr\\\\Http\\\\Message\\\\ResponseInterface, React\\\\Http\\\\Exception\\>\\:\\:done\\(\\)\\.$#"
50+
count: 1
51+
path: src/Command/FixerApplication.php
52+
4853
-
4954
message: "#^Call to an undefined method React\\\\Promise\\\\PromiseInterface\\:\\:done\\(\\)\\.$#"
5055
count: 1

src/Command/FixerApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private function downloadPhar(
364364
throw new \PHPStan\ShouldNotHappenException(sprintf('Could not open file %s for writing.', $pharPath));
365365
}
366366
$progressBar = new ProgressBar($output);
367-
$client->requestStreaming('GET', $latestInfo['url'])->done(static function (ResponseInterface $response) use ($loop, $pharPath, $progressBar, $pharPathResource): void {
367+
$client->requestStreaming('GET', $latestInfo['url'])->done(static function (ResponseInterface $response) use ($progressBar, $pharPathResource): void {
368368
$body = $response->getBody();
369369
if (!$body instanceof \React\Stream\ReadableStreamInterface) {
370370
throw new \PHPStan\ShouldNotHappenException();

0 commit comments

Comments
 (0)