8000 minor #21059 fixed @return when returning this or static (fabpot) · symfony/symfony@afa1f45 · GitHub
[go: up one dir, main page]

Skip to content

Commit afa1f45

Browse files
committed
minor #21059 fixed @return when returning this or static (fabpot)
This PR was merged into the 2.8 branch. Discussion ---------- fixed @return when returning this or static | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Follow-up of #21054 for the 2.8 branch. Commits ------- 7808b67 fixed @return when returning this or static
2 parents 9a64d83 + 7808b67 commit afa1f45

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getStyle()
145145
* @param int $columnIndex Column index
146146
* @param TableStyle|string $name The style name or a TableStyle instance
147147
*
148-
* @return Table
148+
* @return self
149149
*/
150150
public function setColumnStyle($columnIndex, $name)
151151
{

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public function getFile()
547547
*
548548
* @param bool $shared Whether the service must be shared or not
549549
*
550-
* @return Definition The current instance
550+
* @return self
551551
*/
552552
public function setShared($shared)
553553
{
@@ -749,7 +749,7 @@ public function isAbstract()
749749
* @param bool $status
750750
* @param string $template Template message to use if the definition is deprecated
751751
*
752-
* @return Definition the current instance
752+
* @return self
753753
*
754754
* @throws InvalidArgumentException When the message template is invalid.
755755
*/
@@ -824,7 +824,7 @@ public function getConfigurator()
824824
*
825825
* @param string[] $types
826826
*
827-
* @return Definition The current instance
827+
* @return self
828828
*/
829829
public function setAutowiringTypes(array $types)
830830
{
@@ -852,7 +852,7 @@ public function isAutowired()
852852
*
853853
* @param bool $autowired
854854
*
855-
* @return Definition The current instance
855+
* @return self
856856
*/
857857
public function setAutowired($autowired)
858858
{
@@ -876,7 +876,7 @@ public function getAutowiringTypes()
876876
*
877877
* @param string $type
878878
*
879-
* @return Definition The current instance
879+
* @return self
880880
*/
881881
public function addAutowiringType($type)
882882
{
@@ -890,7 +890,7 @@ public function addAutowiringType($type)
890890
*
891891
* @param string $type
892892
*
893-
* @return Definition The current instance
893+
* @return self
894894
*/
895895
public function removeAutowiringType($type)
896896
{

src/Symfony/Component/Form/ChoiceList/View/ChoiceGroupView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($label, array $choices = array())
4848
/**
4949
* {@inheritdoc}
5050
*
51-
* @return ChoiceGroupView[]|ChoiceView[]
51+
* @return self[]|ChoiceView[]
5252
*/
5353
public function getIterator()
5454
{

src/Symfony/Component/Form/ResolvedFormTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getName();
3030
/**
3131
* Returns the parent type.
3232
*
33-
* @return ResolvedFormTypeInterface|null The parent type or null
33+
* @return self|null The parent type or null
3434
*/
3535
public function getParent();
3636

src/Symfony/Component/PropertyInfo/Type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function isCollection()
148148
*
149149
* Only applicable for a collection type.
150150
*
151-
* @return Type|null
151+
* @return self|null
152152
*/
153153
public function getCollectionKeyType()
154154
{
@@ -160,7 +160,7 @@ public function getCollectionKeyType()
160160
*
161161
* Only applicable for a collection type.
162162
*
163-
* @return Type|null
163+
* @return self|null
164164
*/
165165
public function getCollectionValueType()
166166
{

src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php

Lines changed: 2 additions & 2 deletions
< F438 tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DumperCollection implements \IteratorAggregate
3838
/**
3939
* Returns the children routes and collections.
4040
*
41-
* @return DumperCollection[]|DumperRoute[] Array of DumperCollection|DumperRoute
41+
* @return self[]|DumperRoute[]
4242
*/
4343
public function all()
4444
{
@@ -96,7 +96,7 @@ public function getRoot()
9696
/**
9797
* Returns the parent collection.
9898
*
99-
* @return DumperCollection|null The parent collection or null if the collection has no parent
99+
* @return self|null The parent collection or null if the collection has no parent
100100
*/
101101
protected function getParent()
102102
{

src/Symfony/Component/Routing/RouteCollectionBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(LoaderInterface $loader = null)
5555
* @param string|null $prefix
5656
* @param string $type
5757
*
58-
* @return RouteCollectionBuilder
58+
* @return self
5959
*
6060
* @throws FileLoaderLoadException
6161
*/
@@ -101,7 +101,7 @@ public function add($path, $controller, $name = null)
101101
/**
102102
* Returns a RouteCollectionBuilder that can be configured and then added with mount().
103103
*
104-
* @return RouteCollectionBuilder
104+
* @return self
105105
*/
106106
public function createBuilder()
107107
{

src/Symfony/Component/Stopwatch/Section.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($origin = null)
5353
*
5454
* @param string $id The child section identifier
5555
*
56-
* @return Section|null The child section or null when none found
56+
* @return self|null The child section or null when none found
5757
*/
5858
public function get($id)
5959
{

0 commit comments

Comments
 (0)
0