10000 fixed @return when returning this or static by fabpot · Pull Request #21059 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

fixed @return when returning this or static #21059

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
Dec 29, 2016
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
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Helper/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function getStyle()
* @param int $columnIndex Column index
* @param TableStyle|string $name The style name or a TableStyle instance
*
* @return Table
* @return self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this

*/
public function setColumnStyle($columnIndex, $name)
{
Expand Down
12 changes: 6 additions & 6 deletions src/Symfony/Component/DependencyInjection/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public function getFile()
*
* @param bool $shared Whether the service must be shared or not
*
* @return Definition The current instance
* @return self
Copy link
Contributor
@ogizanagi ogizanagi Dec 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this (same for each changes in this class)

*/
public function setShared($shared)
{
Expand Down Expand Up @@ -749,7 +749,7 @@ public function isAbstract()
* @param bool $status
* @param string $template Template message to use if the definition is deprecated
*
* @return Definition the current instance
* @return self
*
* @throws InvalidArgumentException When the message template is invalid.
*/
Expand Down Expand Up @@ -824,7 +824,7 @@ public function getConfigurator()
*
* @param string[] $types
*
* @return Definition The current instance
* @return self
*/
public function setAutowiringTypes(array $types)
{
Expand Down Expand Up @@ -852,7 +852,7 @@ public function isAutowired()
*
* @param bool $autowired
*
* @return Definition The current instance
* @return self
*/
public function setAutowired($autowired)
{
Expand All @@ -876,7 +876,7 @@ public function getAutowiringTypes()
*
* @param string $type
*
* @return Definition The current instance
* @return self
*/
public function addAutowiringType($type)
{
Expand All @@ -890,7 +890,7 @@ public function addAutowiringType($type)
*
* @param string $type
*
* @return Definition The current instance
* @return self
*/
public function removeAutowiringType($type)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct($label, array $choices = array())
/**
* {@inheritdoc}
*
* @return ChoiceGroupView[]|ChoiceView[]
* @return self[]|ChoiceView[]
*/
public function getIterator()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/ResolvedFormTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getName();
/**
* Returns the parent type.
*
* @return ResolvedFormTypeInterface|null The parent type or null
* @return self|null The parent type or null
*/
public function getParent();

Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/PropertyInfo/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function isCollection()
*
* Only applicable for a collection type.
*
* @return Type|null
* @return self|null
*/
public function getCollectionKeyType()
{
Expand All @@ -160,7 +160,7 @@ public function getCollectionKeyType()
*
* Only applicable for a collection type.
*
* @return Type|null
* @return self|null
*/
public function getCollectionValueType()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DumperCollection implements \IteratorAggregate
/**
* Returns the children routes and collections.
*
* @return DumperCollection[]|DumperRoute[] Array of DumperCollection|DumperRoute
* @return self[]|DumperRoute[]
*/
public function all()
{
Expand Down Expand Up @@ -96,7 +96,7 @@ public function getRoot()
/**
* Returns the parent collection.
*
* @return DumperCollection|null The parent collection or null if the collection has no parent
* @return self|null The parent collection or null if the collection has no parent
*/
protected function getParent()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Routing/RouteCollectionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(LoaderInterface $loader = null)
* @param string|null $prefix
* @param string $type
*
* @return RouteCollectionBuilder
* @return self
*
* @throws FileLoaderLoadException
*/
Expand Down Expand Up @@ -101,7 +101,7 @@ public function add($path, $controller, $name = null)
/**
* Returns a RouteCollectionBuilder that can be configured and then added with mount().
*
* @return RouteCollectionBuilder
* @return self
*/
public function createBuilder()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Stopwatch/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct($origin = null)
*
* @param string $id The child section identifier
*
* @return Section|null The child section or null when none found
* @return self|null The child section or null when none found
*/
public function get($id)
{
Expand Down
0