8000 phpdoc fixes by nicolas-grekas · Pull Request #42210 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

phpdoc fixes #42210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
phpdoc fixes
  • Loading branch information
nicolas-grekas committed Jul 21, 2021
commit e1730f411a0dbdaf91a368afba0f7dd9ba414c79
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public function getName()
/**
* @param bool $hidden Whether or not the command should be hidden from the list of commands
*
* @return Command The current instance
* @return $this
*/
public function setHidden($hidden)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Messenger/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function wrap($message, array $stamps = []): self
}

/**
* @return Envelope a new Envelope instance with additional stamp
* @return static A new Envelope instance with additional stamp
*/
public function with(StampInterface ...$stamps): self
{
Expand All @@ -67,7 +67,7 @@ public function with(StampInterface ...$stamps): self
}

/**
* @return Envelope a new Envelope instance without any stamps of the given class
* @return static A new Envelope instance without any stamps of the given class
*/
public function withoutAll(string $stampFqcn): self
{
Expand Down
11 changes: 2 additions & 9 deletions src/Symfony/Component/Templating/Loader/CacheLoader.php
8000
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Symfony\Component\Templating\Loader;

use Symfony\Component\Templating\Storage\FileStorage;
use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\TemplateReferenceInterface;

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

/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
Expand Down Expand Up @@ -78,11 +75,7 @@ public function load(TemplateReferenceInterface $template)
}

/**
* Returns true if the template is still fresh.
*
* @param int $time The last modification time of the cached template (timestamp)
*
* @return bool
* {@inheritdoc}
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{
Expand Down
16 changes: 3 additions & 13 deletions src/Symfony/Component/Templating/Loader/ChainLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Symfony\Component\Templating\Loader;

use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\TemplateReferenceInterface;

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

/**
* @param LoaderInterface[] $loaders An array of loader instances
* @param LoaderInterface[] $loaders
*/
public function __construct(array $loaders = [])
{
Expand All @@ -33,18 +32,13 @@ public function __construct(array $loaders = [])
}
}

/**
* Adds a loader instance.
*/
public function addLoader(LoaderInterface $loader)
{
$this->loaders[] = $loader;
}

/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
Expand All @@ -58,11 +52,7 @@ public function load(TemplateReferenceInterface $template)
}

/**
* Returns true if the template is still fresh.
*
* @param int $time The last modification time of the cached template (timestamp)
*
* @return bool
* {@inheritdoc}
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{
Expand Down
11 changes: 2 additions & 9 deletions src/Symfony/Component/Templating/Loader/FilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Symfony\Component\Templating\Loader;

use Symfony\Component\Templating\Storage\FileStorage;
use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\TemplateReferenceInterface;

/**
Expand All @@ -33,9 +32,7 @@ public function __construct($templatePathPatterns)
}

/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
Expand Down Expand Up @@ -76,11 +73,7 @@ public function load(TemplateReferenceInterface $template)
}

/**
* Returns true if the template is still fresh.
*
* @param int $time The last modification time of the cached template (timestamp)
*
* @return bool true if the template is still fresh, false otherwise
* {@inheritdoc}
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{
Expand Down
A3E2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface LoaderInterface
/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* @return Storage|false false if the template cannot be loaded, a Storage instance otherwise
*/
public function load(TemplateReferenceInterface $template);

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Workflow/TransitionBlockerList.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function isEmpty(): bool
/**
* {@inheritdoc}
*
* @return \ArrayIterator|TransitionBlocker[]
* @return \Traversable<TransitionBlocker>
*/
public function getIterator(): \Traversable
{
Expand Down
0