Skip to content

Commit 5be3cba

Browse files
committed
Merge branch '3.2'
* 3.2: [FrameworkBundle] Ignore AnnotationException exceptions in the AnnotationsCacheWarmer fixed @return when returning this or static override property constraints in child class removed unneeded comment [Console] improved code coverage of Command class [FrameworkBundle] Make TemplateController working without the Templating component [FrameworkBundle] Allow multiple transactions with the same name Only count on arrays or countables to avoid warnings in PHP 7.2
2 parents 941debb + 5794993 commit 5be3cba

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Finder.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct()
7272
/**
7373
* Creates a new Finder.
7474
*
75-
* @return Finder A new Finder instance
75+
* @return static
7676
*/
7777
public static function create()
7878
{
@@ -82,7 +82,7 @@ public static function create()
8282
/**
8383
* Restricts the matching to directories only.
8484
*
85-
* @return Finder|SplFileInfo[] The current Finder instance
85+
* @return $this
8686
*/
8787
public function directories()
8888
{
@@ -94,7 +94,7 @@ public function directories()
9494
/**
9595
* Restricts the matching to files only.
9696
*
97-
* @return Finder|SplFileInfo[] The current Finder instance
97+
* @return $this
9898
*/
9999
public function files()
100100
{
@@ -113,7 +113,7 @@ public function files()
113113
*
114114
* @param string|int $level The depth level expression
115115
*
116-
* @return Finder|SplFileInfo[] The current Finder instance
116+
* @return $this
117117
*
118118
* @see DepthRangeFilterIterator
119119
* @see NumberComparator
@@ -137,7 +137,7 @@ public function depth($level)
137137
*
138138
* @param string $date A date range string
139139
*
140-
* @return Finder|SplFileInfo[] The current Finder instance
140+
* @return $this
141141
*
142142
* @see strtotime
143143
* @see DateRangeFilterIterator
@@ -161,7 +161,7 @@ public function date($date)
161161
*
162162
* @param string $pattern A pattern (a regexp, a glob, or a string)
163163
*
164-
* @return Finder|SplFileInfo[] The current Finder instance
164+
* @return $this
165165
*
166166
* @see FilenameFilterIterator
167167
*/
@@ -177,7 +177,7 @@ public function name($pattern)
177177
*
178178
* @param string $pattern A pattern (a regexp, a glob, or a string)
179179
*
180-
* @return Finder|SplFileInfo[] The current Finder instance
180+
* @return $this
181181
*
182182
* @see FilenameFilterIterator
183183
*/
@@ -198,7 +198,7 @@ public function notName($pattern)
198198
*
199199
* @param string $pattern A pattern (string or regexp)
200200
*
201-
* @return Finder|SplFileInfo[] The current Finder instance
201+
* @return $this
202202
*
203203
* @see FilecontentFilterIterator
204204
*/
@@ -219,7 +219,7 @@ public function contains($pattern)
219219
*
220220
* @param string $pattern A pattern (string or regexp)
221221
*
222-
* @return Finder|SplFileInfo[] The current Finder instance
222+
* @return $this
223223
*
224224
* @see FilecontentFilterIterator
225225
*/
@@ -242,7 +242,7 @@ public function notContains($pattern)
242242
*
243243
* @param string $pattern A pattern (a regexp or a string)
244244
*
245-
* @return Finder|SplFileInfo[] The current Finder instance
245+
* @return $this
246246
*
247247
* @see FilenameFilterIterator
248248
*/
@@ -265,7 +265,7 @@ public function path($pattern)
265265
*
266266
* @param string $pattern A pattern (a regexp or a string)
267267
*
268-
* @return Finder|SplFileInfo[] The current Finder instance
268+
* @return $this
269269
*
270270
* @see FilenameFilterIterator
271271
*/
@@ -285,7 +285,7 @@ public function notPath($pattern)
285285
*
286286
* @param string|int $size A size range string or an integer
287287
*
288-
* @return Finder|SplFileInfo[] The current Finder instance
288+
* @return $this
289289
*
290290
* @see SizeRangeFilterIterator
291291
* @see NumberComparator
@@ -302,7 +302,7 @@ public function size($size)
302302
*
303303
* @param string|array $dirs A directory path or an array of directories
304304
*
305-
* @return Finder|SplFileInfo[] The current Finder instance
305+
* @return $this
306306
*
307307
* @see ExcludeDirectoryFilterIterator
308308
*/
@@ -318,7 +318,7 @@ public function exclude($dirs)
318318
*
319319
* @param bool $ignoreDotFiles Whether to exclude "hidden" files or not
320320
*
321-
* @return Finder|SplFileInfo[] The current Finder instance
321+
* @return $this
322322
*
323323
* @see ExcludeDirectoryFilterIterator
324324
*/
@@ -338,7 +338,7 @@ public function ignoreDotFiles($ignoreDotFiles)
338338
*
339339
* @param bool $ignoreVCS Whether to exclude VCS files or not
340340
*
341-
* @return Finder|SplFileInfo[] The current Finder instance
341+
* @return $this
342342
*
343343
* @see ExcludeDirectoryFilterIterator
344344
*/
@@ -378,7 +378,7 @@ public static function addVCSPattern($pattern)
378378
*
379379
* @param \Closure $closure An anonymous function
380380
*
381-
* @return Finder|SplFileInfo[] The current Finder instance
381+
* @return $this
382382
*
383383
* @see SortableIterator
384384
*/
@@ -394,7 +394,7 @@ public function sort(\Closure $closure)
394394
*
395395
* This can be slow as all the matching files and directories must be retrieved for comparison.
396396
*
397-
* @return Finder|SplFileInfo[] The current Finder instance
397+
* @return $this
398398
*
399399
* @see SortableIterator
400400
*/
@@ -410,7 +410,7 @@ public function sortByName()
410410
*
411411
* This can be slow as all the matching files and directories must be retrieved for comparison.
412412
*
413-
* @return Finder|SplFileInfo[] The current Finder instance
413+
* @return $this
414414
*
415415
* @see SortableIterator
416416
*/
@@ -428,7 +428,7 @@ public function sortByType()
428428
*
429429
* This can be slow as all the matching files and directories must be retrieved for comparison.
430430
*
431-
* @return Finder|SplFileInfo[] The current Finder instance
431+
* @return $this
432432
*
433433
* @see SortableIterator
434434
*/
@@ -448,7 +448,7 @@ public function sortByAccessedTime()
448448
*
449449
* This can be slow as all the matching files and directories must be retrieved for comparison.
450450
*
451-
* @return Finder|SplFileInfo[] The current Finder instance
451+
* @return $this
452452
*
453453
* @see SortableIterator
454454
*/
@@ -466,7 +466,7 @@ public function sortByChangedTime()
466466
*
467467
* This can be slow as all the matching files and directories must be retrieved for comparison.
468468
*
469-
* @return Finder|SplFileInfo[] The current Finder instance
469+
* @return $this
470470
*
471471
* @see SortableIterator
472472
*/
@@ -485,7 +485,7 @@ public function sortByModifiedTime()
485485
*
486486
* @param \Closure $closure An anonymous function
487487
*
488-
* @return Finder|SplFileInfo[] The current Finder instance
488+
* @return $this
489489
*
490490
* @see CustomFilterIterator
491491
*/
@@ -499,7 +499,7 @@ public function filter(\Closure $closure)
499499
/**
500500
* Forces the following of symlinks.
501501
*
502-
* @return Finder|SplFileInfo[] The current Finder instance
502+
* @return $this
503503
*/
504504
public function followLinks()
505505
{
@@ -515,7 +515,7 @@ public function followLinks()
515515
*
516516
* @param bool $ignore
517517
*
518-
* @return Finder|SplFileInfo[] The current Finder instance
518+
* @return $this
519519
*/
520520
public function ignoreUnreadableDirs($ignore = true)
521521
{
@@ -529,7 +529,7 @@ public function ignoreUnreadableDirs($ignore = true)
529529
*
530530
* @param string|array $dirs A directory path or an array of directories
531531
*
532-
* @return Finder|SplFileInfo[] The current Finder instance
532+
* @return $this
533533
*
534534
* @throws \InvalidArgumentException if one of the directories does not exist
535535
*/
@@ -590,7 +590,7 @@ public function getIterator()
590590
*
591591
* @param mixed $iterator
592592
*
593-
* @return Finder|SplFileInfo[] The finder
593+
* @return $this
594594
*
595595
* @throws \InvalidArgumentException When the given argument is not iterable.
596596
*/

0 commit comments

Comments
 (0)