Skip to content

Commit 74da2cd

Browse files
authored
Merge pull request #233 from php-http/fix-static-ci
Fix static ci
2 parents 1e19c05 + ce4e409 commit 74da2cd

34 files changed

+9
-115
lines changed

.github/workflows/static.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717

18+
- name: Remove phpspec
19+
run: composer remove --dev friends-of-phpspec/phpspec-code-coverage phpspec/phpspec
20+
1821
- name: PHPStan
1922
uses: OskarStark/[email protected]
2023
env:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## unreleased
4+
5+
- Cleaned up phpdoc.
6+
37
## 2.7.1 - 2023-11-30
48

59
- Allow installation with Symfony 7.

src/Deferred.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public function __construct(callable $waitCallback)
5151
$this->onRejectedCallbacks = [];
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
5754
public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
5855
{
5956
$deferred = new self($this->waitCallback);
@@ -86,9 +83,6 @@ public function then(callable $onFulfilled = null, callable $onRejected = null):
8683
return $deferred;
8784
}
8885

89-
/**
90-
* {@inheritdoc}
91-
*/
9286
public function getState(): string
9387
{
9488
return $this->state;
@@ -128,9 +122,6 @@ public function reject(ClientExceptionInterface $exception): void
128122
}
129123
}
130124

131-
/**
132-
* {@inheritdoc}
133-
*/
134125
public function wait($unwrap = true)
135126
{
136127
if (Promise::PENDING === $this->state) {

src/HttpAsyncClientDecorator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ trait HttpAsyncClientDecorator
2020
protected $httpAsyncClient;
2121

2222
/**
23-
* {@inheritdoc}
24-
*
2523
* @see HttpAsyncClient::sendAsyncRequest
2624
*/
2725
public function sendAsyncRequest(RequestInterface $request)

src/HttpAsyncClientEmulator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@
1717
trait HttpAsyncClientEmulator
1818
{
1919
/**
20-
* {@inheritdoc}
21-
*
2220
* @see HttpClient::sendRequest
2321
*/
2422
abstract public function sendRequest(RequestInterface $request): ResponseInterface;
2523

2624
/**
27-
* {@inheritdoc}
28-
*
2925
* @see HttpAsyncClient::sendAsyncRequest
3026
*/
3127
public function sendAsyncRequest(RequestInterface $request)

src/HttpClientDecorator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ trait HttpClientDecorator
2121
protected $httpClient;
2222

2323
/**
24-
* {@inheritdoc}
25-
*
2624
* @see ClientInterface::sendRequest
2725
*/
2826
public function sendRequest(RequestInterface $request): ResponseInterface

src/HttpClientEmulator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
trait HttpClientEmulator
1616
{
1717
/**
18-
* {@inheritdoc}
19-
*
2018
* @see HttpClient::sendRequest
2119
*/
2220
public function sendRequest(RequestInterface $request): ResponseInterface
@@ -27,8 +25,6 @@ public function sendRequest(RequestInterface $request): ResponseInterface
2725
}
2826

2927
/**
30-
* {@inheritdoc}
31-
*
3228
* @see HttpAsyncClient::sendAsyncRequest
3329
*/
3430
abstract public function sendAsyncRequest(RequestInterface $request);

src/HttpClientPool/HttpClientPool.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,11 @@ public function addHttpClient($client): void
5252
*/
5353
abstract protected function chooseHttpClient(): HttpClientPoolItem;
5454

55-
/**
56-
* {@inheritdoc}
57-
*/
5855
public function sendAsyncRequest(RequestInterface $request)
5956
{
6057
return $this->chooseHttpClient()->sendAsyncRequest($request);
6158
}
6259

63-
/**
64-
* {@inheritdoc}
65-
*/
6660
public function sendRequest(RequestInterface $request): ResponseInterface
6761
{
6862
return $this->chooseHttpClient()->sendRequest($request);

src/HttpClientPool/HttpClientPoolItem.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ public function __construct($client, int $reenableAfter = null)
6969
$this->reenableAfter = $reenableAfter;
7070
}
7171

72-
/**
73-
* {@inheritdoc}
74-
*/
7572
public function sendRequest(RequestInterface $request): ResponseInterface
7673
{
7774
if ($this->isDisabled()) {
@@ -92,9 +89,6 @@ public function sendRequest(RequestInterface $request): ResponseInterface
9289
return $response;
9390
}
9491

95-
/**
96-
* {@inheritdoc}
97-
*/
9892
public function sendAsyncRequest(RequestInterface $request)
9993
{
10094
if ($this->isDisabled()) {

src/HttpClientPool/LeastUsedClientPool.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
final class LeastUsedClientPool extends HttpClientPool
1717
{
18-
/**
19-
* {@inheritdoc}
20-
*/
2118
protected function chooseHttpClient(): HttpClientPoolItem
2219
{
2320
$clientPool = array_filter($this->clientPool, function (HttpClientPoolItem $clientPoolItem) {

0 commit comments

Comments
 (0)