Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 708b9a2

Browse filesBrowse files
committed
minor #20729 [Finder] Refine phpdoc about argument for NumberComparator (vlakoff)
This PR was merged into the 2.7 branch. Discussion ---------- [Finder] Refine phpdoc about argument for NumberComparator | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The most important being the addition of "string" to `Finder::depth()`. Commits ------- 9b9d339 [Finder] Refine phpdoc about argument for NumberComparator
2 parents a495947 + 9b9d339 commit 708b9a2
Copy full SHA for 708b9a2

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎src/Symfony/Component/Finder/Comparator/NumberComparator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Comparator/NumberComparator.php
+1-1Lines 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
*/

‎src/Symfony/Component/Finder/Finder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Finder.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.