@@ -171,7 +171,7 @@ public function getAdapters()
171
171
/**
172
172
* Restricts the matching to directories only.
173
173
*
174
- * @return Finder The current Finder instance
174
+ * @return Finder|SplFileInfo[] The current Finder instance
175
175
*/
176
176
public function directories ()
177
177
{
@@ -183,7 +183,7 @@ public function directories()
183
183
/**
184
184
* Restricts the matching to files only.
185
185
*
186
- * @return Finder The current Finder instance
186
+ * @return Finder|SplFileInfo[] The current Finder instance
187
187
*/
188
188
public function files ()
189
189
{
@@ -202,7 +202,7 @@ public function files()
202
202
*
203
203
* @param int $level The depth level expression
204
204
*
205
- * @return Finder The current Finder instance
205
+ * @return Finder|SplFileInfo[] The current Finder instance
206
206
*
207
207
* @see DepthRangeFilterIterator
208
208
* @see NumberComparator
@@ -226,7 +226,7 @@ public function depth($level)
226
226
*
227
227
* @param string $date A date range string
228
228
*
229
- * @return Finder The current Finder instance
229
+ * @return Finder|SplFileInfo[] The current Finder instance
230
230
*
231
231
* @see strtotime
232
232
* @see DateRangeFilterIterator
@@ -250,7 +250,7 @@ public function date($date)
250
250
*
251
251
* @param string $pattern A pattern (a regexp, a glob, or a string)
252
252
*
253
- * @return Finder The current Finder instance
253
+ * @return Finder|SplFileInfo[] The current Finder instance
254
254
*
255
255
* @see FilenameFilterIterator
256
256
*/
@@ -266,7 +266,7 @@ public function name($pattern)
266
266
*
267
267
* @param string $pattern A pattern (a regexp, a glob, or a string)
268
268
*
269
- * @return Finder The current Finder instance
269
+ * @return Finder|SplFileInfo[] The current Finder instance
270
270
*
271
271
* @see FilenameFilterIterator
272
272
*/
@@ -287,7 +287,7 @@ public function notName($pattern)
287
287
*
288
288
* @param string $pattern A pattern (string or regexp)
289
289
*
290
- * @return Finder The current Finder instance
290
+ * @return Finder|SplFileInfo[] The current Finder instance
291
291
*
292
292
* @see FilecontentFilterIterator
293
293
*/
@@ -308,7 +308,7 @@ public function contains($pattern)
308
308
*
309
309
* @param string $pattern A pattern (string or regexp)
310
310
*
311
- * @return Finder The current Finder instance
311
+ * @return Finder|SplFileInfo[] The current Finder instance
312
312
*
313
313
* @see FilecontentFilterIterator
314
314
*/
@@ -331,7 +331,7 @@ public function notContains($pattern)
331
331
*
332
332
* @param string $pattern A pattern (a regexp or a string)
333
333
*
334
- * @return Finder The current Finder instance
334
+ * @return Finder|SplFileInfo[] The current Finder instance
335
335
*
336
336
* @see FilenameFilterIterator
337
337
*/
@@ -354,7 +354,7 @@ public function path($pattern)
354
354
*
355
355
* @param string $pattern A pattern (a regexp or a string)
356
356
*
357
- * @return Finder The current Finder instance
357
+ * @return Finder|SplFileInfo[] The current Finder instance
358
358
*
359
359
* @see FilenameFilterIterator
360
360
*/
@@ -374,7 +374,7 @@ public function notPath($pattern)
374
374
*
375
375
* @param string $size A size range string
376
376
*
377
- * @return Finder The current Finder instance
377
+ * @return Finder|SplFileInfo[] The current Finder instance
378
378
*
379
379
* @see SizeRangeFilterIterator
380
380
* @see NumberComparator
@@ -391,7 +391,7 @@ public function size($size)
391
391
*
392
392
* @param string|array $dirs A directory path or an array of directories
393
393
*
394
- * @return Finder The current Finder instance
394
+ * @return Finder|SplFileInfo[] The current Finder instance
395
395
*
396
396
* @see ExcludeDirectoryFilterIterator
397
397
*/
@@ -407,7 +407,7 @@ public function exclude($dirs)
407
407
*
408
408
* @param bool $ignoreDotFiles Whether to exclude "hidden" files or not
409
409
*
410
- * @return Finder The current Finder instance
410
+ * @return Finder|SplFileInfo[] The current Finder instance
411
411
*
412
412
* @see ExcludeDirectoryFilterIterator
413
413
*/
@@ -427,7 +427,7 @@ public function ignoreDotFiles($ignoreDotFiles)
427
427
*
428
428
* @param bool $ignoreVCS Whether to exclude VCS files or not
429
429
*
430
- * @return Finder The current Finder instance
430
+ * @return Finder|SplFileInfo[] The current Finder instance
431
431
*
432
432
* @see ExcludeDirectoryFilterIterator
433
433
*/
@@ -467,7 +467,7 @@ public static function addVCSPattern($pattern)
467
467
*
468
468
* @param \Closure $closure An anonymous function
469
469
*
470
- * @return Finder The current Finder instance
470
+ * @return Finder|SplFileInfo[] The current Finder instance
471
471
*
472
472
* @see SortableIterator
473
473
*/
@@ -483,7 +483,7 @@ public function sort(\Closure $closure)
483
483
*
484
484
* This can be slow as all the matching files and directories must be retrieved for comparison.
485
485
*
486
- * @return Finder The current Finder instance
486
+ * @return Finder|SplFileInfo[] The current Finder instance
487
487
*
488
488
* @see SortableIterator
489
489
*/
@@ -499,7 +499,7 @@ public function sortByName()
499
499
*
500
500
* This can be slow as all the matching files and directories must be retrieved for comparison.
501
501
*
502
- * @return Finder The current Finder instance
502
+ * @return Finder|SplFileInfo[] The current Finder instance
503
503
*
504
504
* @see SortableIterator
505
505
*/
@@ -517,7 +517,7 @@ public function sortByType()
517
517
*
518
518
* This can be slow as all the matching files and directories must be retrieved for comparison. <
F438
/div>
519
519
*
520
- * @return Finder The current Finder instance
520
+ * @return Finder|SplFileInfo[] The current Finder instance
521
521
*
522
522
* @see SortableIterator
523
523
*/
@@ -537,7 +537,7 @@ public function sortByAccessedTime()
537
537
*
538
538
* This can be slow as all the matching files and directories must be retrieved for comparison.
539
539
*
540
- * @return Finder The current Finder instance
540
+ * @return Finder|SplFileInfo[] The current Finder instance
541
541
*
542
542
* @see SortableIterator
543
543
*/
@@ -555,7 +555,7 @@ public function sortByChangedTime()
555
555
*
556
556
* This can be slow as all the matching files and directories must be retrieved for comparison.
557
557
*
558
- * @return Finder The current Finder instance
558
+ * @return Finder|SplFileInfo[] The current Finder instance
559
559
*
560
560
* @see SortableIterator
561
561
*/
@@ -574,7 +574,7 @@ public function sortByModifiedTime()
574
574
*
575
575
* @param \Closure $closure An anonymous function
576
576
*
577
- * @return Finder The current Finder instance
577
+ * @return Finder|SplFileInfo[] The current Finder instance
578
578
*
579
579
* @see CustomFilterIterator
580
580
*/
@@ -588,7 +588,7 @@ public function filter(\Closure $closure)
588
588
/**
589
589
* Forces the following of symlinks.
590
590
*
591
- * @return Finder The current Finder instance
591
+ * @return Finder|SplFileInfo[] The current Finder instance
592
592
*/
593
593
public function followLinks ()
594
594
{
@@ -604,7 +604,7 @@ public function followLinks()
604
604
*
605
605
* @param bool $ignore
606
606
*
607
- * @return Finder The current Finder instance
607
+ * @return Finder|SplFileInfo[] The current Finder instance
608
608
*/
609
609
public function ignoreUnreadableDirs ($ ignore = true )
610
610
{
@@ -618,7 +618,7 @@ public function ignoreUnreadableDirs($ignore = true)
618
618
*
619
619
* @param string|array $dirs A directory path or an array of directories
620
620
*
621
- * @return Finder The current Finder instance
621
+ * @return Finder|SplFileInfo[] The current Finder instance
622
622
*
623
623
* @throws \InvalidArgumentException if one of the directories does not exist
624
624
*/
@@ -679,7 +679,7 @@ public function getIterator()
679
679
*
680
680
* @param mixed $iterator
681
681
*
682
- * @return Finder The finder
682
+ * @return Finder|SplFileInfo[] The finder
683
683
*
684
684
* @throws \InvalidArgumentException When the given argument is not iterable.
685
685
*/
0 commit comments