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

Skip to content

Commit 0fe9adb

Browse files 8000
phpdoc fixes
1 parent 45015b9 commit 0fe9adb

File tree

7 files changed

+12
-33
lines changed

7 files changed

+12
-33
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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public function __construct(LoaderInterface $loader, string $dir)
3939
}
4040

4141
/**
42-
* Loads a template.
43-
*
44-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
42+
* {@inheritdoc}
4543
*/
4644
public function load(TemplateReferenceInterface $template)
4745
{
@@ -78,11 +76,7 @@ public function load(TemplateReferenceInterface $template)
7876
}
7977

8078
/**
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
79+
* {@inheritdoc}
8680
*/
8781
public function isFresh(TemplateReferenceInterface $template, $time)
8882
{

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ChainLoader extends Loader
2424
protected $loaders = [];
2525

2626
/**
27-
* @param LoaderInterface[] $loaders An array of loader instances
27+
* @param LoaderInterface[] $loaders
2828
*/
2929
public function __construct(array $loaders = [])
3030
{
@@ -33,18 +33,13 @@ public function __construct(array $loaders = [])
3333
}
3434
}
3535

36-
/**
37-
* Adds a loader instance.
38-
*/
3936
public function addLoader(LoaderInterface $loader)
4037
{
4138
$this->loaders[] = $loader;
4239
}
4340

4441
/**
45-
* Loads a template.
46-
*
47-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
42+
* {@inheritdoc}
4843
*/
4944
public function load(TemplateReferenceInterface $template)
5045
{
@@ -58,11 +53,7 @@ public function load(TemplateReferenceInterface $template)
5853
}
5954

6055
/**
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
56+
* {@inheritdoc}
6657
*/
6758
public function isFresh(TemplateReferenceInterface $template, $time)
6859
{

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ public function __construct($templatePathPatterns)
3333
}
3434

3535
/**
36-
* Loads a template.
37-
*
38-
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
36+
* {@inheritdoc}
3937
*/
4038
public function load(TemplateReferenceInterface $template)
4139
{
@@ -76,11 +74,7 @@ public function load(TemplateReferenceInterface $template)
7674
}
7775

7876
/**
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
77+
* {@inheritdoc}
8478
*/
8579
public function isFresh(TemplateReferenceInterface $template, $time)
8680
{

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 TransitionBlocker[]
6565
*/
6666
public function getIterator(): \Traversable
6767
{

0 commit comments

Comments
 (0)
0