Skip to content

Commit e7062df

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: fixed @return when returning this or static override property constraints in child class [Console] improved code coverage of Command class Only count on arrays or countables to avoid warnings in PHP 7.2
2 parents c0f1057 + fc62f43 commit e7062df

File tree

6 files changed

+67
-67
lines changed

6 files changed

+67
-67
lines changed

Adapter/AdapterInterface.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,105 +21,105 @@ interface AdapterInterface
2121
/**
2222
* @param bool $followLinks
2323
*
24-
* @return AdapterInterface Current instance
24+
* @return $this
2525
*/
2626
public function setFollowLinks($followLinks);
2727

2828
/**
2929
* @param int $mode
3030
*
31-
* @return AdapterInterface Current instance
31+
* @return $this
3232
*/
3333
public function setMode($mode);
3434

3535
/**
3636
* @param array $exclude
3737
*
38-
* @return AdapterInterface Current instance
38+
* @return $this
3939
*/
4040
public function setExclude(array $exclude);
4141

4242
/**
4343
* @param array $depths
4444
*
45-
* @return AdapterInterface Current instance
45+
* @return $this
4646
*/
4747
public function setDepths(array $depths);
4848

4949
/**
5050
* @param array $names
5151
*
52-
* @return AdapterInterface Current instance
52+
* @return $this
5353
*/
5454
public function setNames(array $names);
5555

5656
/**
5757
* @param array $notNames
5858
*
59-
* @return AdapterInterface Current instance
59+
* @return $this
6060
*/
6161
public function setNotNames(array $notNames);
6262

6363
/**
6464
* @param array $contains
6565
*
66-
* @return AdapterInterface Current instance
66+
* @return $this
6767
*/
6868
public function setContains(array $contains);
6969

7070
/**
7171
* @param array $notContains
7272
*
73-
* @return AdapterInterface Current instance
73+
* @return $this
7474
*/
7575
public function setNotContains(array $notContains);
7676

7777
/**
7878
* @param array $sizes
7979
*
80-
* @return AdapterInterface Current instance
80+
* @return $this
8181
*/
8282
public function setSizes(array $sizes);
8383

8484
/**
8585
* @param array $dates
8686
*
87-
* @return AdapterInterface Current instance
87+
* @return $this
8888
*/
8989
public function setDates(array $dates);
9090

9191
/**
9292
* @param array $filters
9393
*
94-
* @return AdapterInterface Current instance
94+
* @return $this
9595
*/
9696
public function setFilters(array $filters);
9797

9898
/**
9999
* @param \Closure|int $sort
100100
*
101-
* @return AdapterInterface Current instance
101+
* @return $this
102102
*/
103103
public function setSort($sort);
104104

105105
/**
106106
* @param array $paths
107107
*
108-
* @return AdapterInterface Current instance
108+
* @return $this
109109
*/
110110
public function setPath(array $paths);
111111

112112
/**
113113
* @param array $notPaths
114114
*
115-
* @return AdapterInterface Current instance
115+
* @return $this
116116
*/
117117
public function setNotPath(array $notPaths);
118118

119119
/**
120120
* @param bool $ignore
121121
*
122-
* @return AdapterInterface Current instance
122+
* @return $this
123123
*/
124124
public function ignoreUnreadableDirs($ignore = true);
125125

Expression/Expression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Expression implements ValueInterface
2929
/**
3030
* @param string $expr
3131
*
32-
* @return Expression
32+
* @return self
3333
*/
3434
public static function create($expr)
3535
{

Expression/Regex.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Regex implements ValueInterface
5757
/**
5858
* @param string $expr
5959
*
60-
* @return Regex
60+
* @return self
6161
*
6262
* @throws \InvalidArgumentException
6363
*/
@@ -175,7 +175,7 @@ public function hasOption($option)
175175
/**
176176
* @param string $option
177177
*
178-
* @return Regex
178+
* @return $this
179179
*/
180180
public function addOption($option)
181181
{
@@ -189,7 +189,7 @@ public function addOption($option)
189189
/**
190190
* @param string $option
191191
*
192-
* @return Regex
192+
* @return $this
193193
*/
194194
public function removeOption($option)
195195
{
@@ -201,7 +201,7 @@ public function removeOption($option)
201201
/**
202202
* @param bool $startFlag
203203
*
204-
* @return Regex
204+
* @return $this
205205
*/
206206
public function setStartFlag($startFlag)
207207
{
@@ -221,7 +221,7 @@ public function hasStartFlag()
221221
/**
222222
* @param bool $endFlag
223223
*
224-
* @return Regex
224+
* @return $this
225225
*/
226226
public function setEndFlag($endFlag)
227227
{
@@ -241,7 +241,7 @@ public function hasEndFlag()
241241
/**
242242
* @param bool $startJoker
243243
*
244-
* @return Regex
244+
* @return $this
245245
*/
246246
public function setStartJoker($startJoker)
247247
{
@@ -261,7 +261,7 @@ public function hasStartJoker()
261261
/**
262262
* @param bool $endJoker
263263
*
264-
* @return Regex
264+
* @return $this
265265
*/
266266
public function setEndJoker($endJoker)
267267
{
@@ -281,7 +281,7 @@ public function hasEndJoker()
281281
/**
282282
* @param array $replacement
283283
*
284-
* @return Regex
284+
* @return $this
285285
*/
286286
public function replaceJokers($replacement)
287287
{

Expression/ValueInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ public function getType();
4949
/**
5050
* @param string $expr
5151
*
52-
* @return ValueInterface
52+
* @return $this
5353
*/
5454
public function prepend($expr);
5555

5656
/**
5757
* @param string $expr
5858
*
59-
* @return ValueInterface
59+
* @return $this
6060
*/
6161
public function append($expr);
6262
}

0 commit comments

Comments
 (0)