10000 [Contracts] Add missing `@return` annotations · alexpott/symfony@bafecf2 · GitHub
[go: up one dir, main page]

Skip to content

Commit bafecf2

Browse files
[Contracts] Add missing @return annotations
1 parent a0496bd commit bafecf2

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

src/Symfony/Contracts/Cache/CacheTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ trait CacheTrait
2727
{
2828
/**
2929
* {@inheritdoc}
30+
*
31+
* @return mixed
3032
*/
3133
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null)
3234
{

src/Symfony/Contracts/HttpClient/Test/TestHttpServer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class TestHttpServer
2121
{
2222
private static $process = [];
2323

24+
/**
25+
* @return Process
26+
*/
2427
public static function start(int $port = 8057)
2528
{
2629
if (isset(self::$process[$port])) {

src/Symfony/Contracts/Service/ServiceSubscriberTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public static function getSubscribedServices(): array
5252

5353
/**
5454
* @required
55+
*
56+
* @return ContainerInterface|null
5557
*/
5658
public function setContainer(ContainerInterface $container)
5759
{

src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
abstract class ServiceLocatorTest extends TestCase
1919
{
20+
/**
21+
* @return ContainerInterface
22+
*/
2023
protected function getServiceLocator(array $factories)
2124
{
2225
return new class($factories) implements ContainerInterface {

src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function aParentService(): Service1
4242
{
4343
}
4444

45-
public function setContainer(ContainerInterface $container)
45+
public function setContainer(ContainerInterface $container): ContainerInterface
4646
{
4747
return $container;
4848
}

src/Symfony/Contracts/Translation/Test/TranslatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ protected function tearDown(): void
4343
\Locale::setDefault($this->defaultLocale);
4444
}
4545

46+
/**
47+
* @return TranslatorInterface
48+
*/
4649
public function getTranslator()
4750
{
4851
return new class() implements TranslatorInterface {

0 commit comments

Comments
 (0)
0