Skip to content

Commit 87fd917

Browse files
Turn @method annotations into real method declarations
1 parent 795e540 commit 87fd917

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

HttpClient/HttpClientInterface.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
*
2020
* @see HttpClientTestCase for a reference test suite
2121
*
22-
* @method static withOptions(array $options) Returns a new instance of the client with new default options
23-
*
2422
* @author Nicolas Grekas <[email protected]>
2523
*/
2624
interface HttpClientInterface
@@ -92,4 +90,9 @@ public function request(string $method, string $url, array $options = []): Respo
9290
* @param float|null $timeout The idle timeout before yielding timeout chunks
9391
*/
9492
public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface;
93+
94+
/**
95+
* Returns a new instance of the client with new default options.
96+
*/
97+
public function withOptions(array $options): static;
9598
}

Translation/TranslatorInterface.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
/**
1515
* @author Fabien Potencier <[email protected]>
16-
*
17-
* @method string getLocale() Returns the default locale
1816
*/
1917
interface TranslatorInterface
2018
{
@@ -62,4 +60,9 @@ interface TranslatorInterface
6260
* @throws \InvalidArgumentException If the locale contains invalid characters
6361
*/
6462
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null): string;
63+
64+
/**
65+
* Returns the default locale.
66+
*/
67+
public function getLocale(): string;
6568
}

0 commit comments

Comments
 (0)