Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/WpOrg/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
use Composer\Downloader\TransportException;
use Composer\Util\HttpDownloader;
use Composer\Util\Loop;
use Composer\Util\SyncHelper;
use React\Promise\PromiseInterface;

use function React\Promise\resolve;

class Client
{
private array $isClosed = [];

Check failure on line 16 in src/WpOrg/Api/Client.php

View workflow job for this annotation

GitHub Actions / php / phpstan (8.3, highest)

Property TypistTech\WpOrgClosedPlugin\WpOrg\Api\Client::$isClosed type has no value type specified in iterable type array.

public function __construct(
private readonly HttpDownloader $httpDownloader,
Expand All @@ -29,7 +28,7 @@
}

if (array_key_exists($slug, $this->isClosed)) {
return $this->isClosed[$slug];

Check failure on line 31 in src/WpOrg/Api/Client.php

View workflow job for this annotation

GitHub Actions / php / phpstan (8.3, highest)

Method TypistTech\WpOrgClosedPlugin\WpOrg\Api\Client::isClosed() should return bool but returns mixed.
}

$promise = $this->fetchIsClosedAsync($slug)
Expand All @@ -37,7 +36,7 @@

$this->loop->wait([$promise]);

return $this->isClosed[$slug];

Check failure on line 39 in src/WpOrg/Api/Client.php

View workflow job for this annotation

GitHub Actions / php / phpstan (8.3, highest)

Method TypistTech\WpOrgClosedPlugin\WpOrg\Api\Client::isClosed() should return bool but returns mixed.
}

/**
Expand Down
Loading