Skip to content

Commit 497da60

Browse files
committed
[Finder] Refine phpdoc about argument for NumberComparator
1 parent 7a8a93d commit 497da60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Comparator/NumberComparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class NumberComparator extends Comparator
3737
/**
3838
* Constructor.
3939
*
40-
* @param string $test A comparison string
40+
* @param string|int $test A comparison string or an integer
4141
*
4242
* @throws \InvalidArgumentException If the test is not understood
4343
*/

Finder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function files()
200200
* $finder->depth('> 1') // the Finder will start matching at level 1.
201201
* $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
202202
*
203-
* @param int $level The depth level expression
203+
* @param string|int $level The depth level expression
204204
*
205205
* @return Finder|SplFileInfo[] The current Finder instance
206206
*
@@ -372,7 +372,7 @@ public function notPath($pattern)
372372
* $finder->size('<= 1Ki');
373373
* $finder->size(4);
374374
*
375-
* @param string $size A size range string
375+
* @param string|int $size A size range string or an integer
376376
*
377377
* @return Finder|SplFileInfo[] The current Finder instance
378378
*

0 commit comments

Comments
 (0)