8000 phpdoc fixes · symfony/symfony@e1730f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1730f4

Browse files
phpdoc fixes
1 parent 45015b9 commit e1730f4

File tree

7 files changed

+12
-36
lines changed

7 files changed

+12
-36
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public function getName()
464464
/**
465465
* @param bool $hidden Whether or not the command should be hidden from the list of commands
466466
*
467-
* @return Command The current instance
467+
* @return $this
468468
*/
469469
public function setHidden($hidden)
470470
{

src/Symfony/Component/Messenger/Envelope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function wrap($message, array $stamps = []): self
5353
}
5454

5555
/**
56-
* @return Envelope a new Envelope instance with additional stamp
56+
* @return static A new Envelope instance with additional stamp
5757
*/
5858
public function with(StampInterface ...$stamps): self
5959
{
@@ -67,7 +67,7 @@ public function with(StampInterface ...$stamps): self
6767
}
6868

6969
/**
70-
* @return Envelope a new Envelope instance without any stamps of the given class
70+
* @return static A new Envelope instance without any stamps of the given class
7171
*/
7272
public function withoutAll(string $stampFqcn): self
7373
{

src/Symfony/Component/Templating/Loader/CacheLoader.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Templating\Loader;
1313

1414
use Symfony\Component\Templating\Storage\FileStorage;
15-
use Symfony\Component\Templating\Storage\Storage;
1615
use Symfony\Component\Templating\TemplateReferenceInterface;
1716

1817
/**
@@ -39,9 +38,7 @@ public function __construct(LoaderInterface $loader, string $dir)
3938
}
4039

4140
/**
42-
* Loads a template.
43-
*
44-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
41+
* {@inheritdoc}
4542
*/
4643
public function load(TemplateReferenceInterface $template)
4744
{
@@ -78,11 +75,7 @@ public function load(TemplateReferenceInterface $template)
7875
}
7976

8077
/**
81-
* Returns true if the template is still fresh.
82-
*
83-
* @param int $time The last modification time of the cached template (timestamp)
84-
*
85-
* @return bool
78+
* {@inheritdoc}
8679
*/
8780
public function isFresh(TemplateReferenceInterface $template, $time)
8881
{

src/Symfony/Component/Templating/Loader/ChainLoader.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Templating\Loader;
1313

14-
use Symfony\Component\Templating\Storage\Storage;
1514
use Symfony\Component\Templating\TemplateReferenceInterface;
57AE
1615

1716
/**
@@ -24,7 +23,7 @@ class ChainLoader extends Loader
2423
protected $loaders = [];
2524

2625
/**
27-
* @param LoaderInterface[] $loaders An array of loader instances
26+
* @param LoaderInterface[] $loaders
2827
*/
2928
public function __construct(array $loaders = [])
3029
{
@@ -33,18 +32,13 @@ public function __construct(array $loaders = [])
3332
}
3433
}
3534

36-
/**
37-
* Adds a loader instance.
38-
*/
3935
public function addLoader(LoaderInterface $loader)
4036
{
4137
$this->loaders[] = $loader;
4238
}
4339

4440
/**
45-
* Loads a template.
46-
*
47-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
41+
* {@inheritdoc}
4842
*/
4943
public function load(TemplateReferenceInterface $template)
5044
{
@@ -58,11 +52,7 @@ public function load(TemplateReferenceInterface $template)
5852
}
5953

6054
/**
61-
* Returns true if the template is still fresh.
62-
*
63-
* @param int $time The last modification time of the cached template (timestamp)
64-
*
65-
* @return bool
55+
* {@inheritdoc}
6656
*/
6757
public function isFresh(TemplateReferenceInterface $template, $time)
6858
{

src/Symfony/Component/Templating/Loader/FilesystemLoader.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Templating\Loader;
1313

1414
use Symfony\Component\Templating\Storage\FileStorage;
15-
use Symfony\Component\Templating\Storage\Storage;
1615
use Symfony\Component\Templating\TemplateReferenceInterface;
1716

1817
/**
@@ -33,9 +32,7 @@ public function __construct($templatePathPatterns)
3332
}
3433

3534
/**
36-
* Loads a template.
37-
*
38-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
35+
* {@inheritdoc}
3936
*/
4037
public function load(TemplateReferenceInterface $template)
4138
{
@@ -76,11 +73,7 @@ public function load(TemplateReferenceInterface $template)
7673
}
7774

7875
/**
79-
* Returns true if the template is still fresh.
80-
*
81-
* @param int $time The last modification time of the cached template (timestamp)
82-
*
83-
* @return bool true if the template is still fresh, false otherwise
76+
* {@inheritdoc}
8477
*/
8578
public function isFresh(TemplateReferenceInterface $template, $time)
8679
{

src/Symfony/Component/Templating/Loader/LoaderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface LoaderInterface
2424
/**
2525
* Loads a template.
2626
*
27-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
27+
* @return Storage|false false if the template cannot be loaded, a Storage instance otherwise
2828
*/
2929
public function load(TemplateReferenceInterface $template);
3030

src/Symfony/Component/Workflow/TransitionBlockerList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function isEmpty(): bool
6161
/**
6262
* {@inheritdoc}
6363
*
64-
* @return \ArrayIterator|TransitionBlocker[]
64+
* @return \Traversable<TransitionBlocker>
6565
*/
6666
public function getIterator(): \Traversable
6767
{

0 commit comments

Comments
 (0)
0