Skip to content

Commit

Permalink
Suppress psalm could not infer type error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismcintosh authored and ksassnowski committed Sep 9, 2022
1 parent bb475db commit c776f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Downloader/Middleware/ExecuteJavascriptMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function __construct(
private LoggerInterface $logger,
?callable $getBrowsershot = null,
) {
/** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
$this->getBrowsershot = $getBrowsershot ?: static fn (string $uri): Browsershot => Browsershot::url($uri)->waitUntilNetworkIdle();
}

Expand Down

0 comments on commit c776f67

Please sign in to comment.