Skip to content

Commit f132197

Browse files
committed
feature #9360 [Finder] Fix finder date constraints and tests (ruian)
This PR was merged into the 2.5-dev branch. Discussion ---------- [Finder] Fix finder date constraints and tests Description: When you search some files with date constraints, all folders are given, even if they are not in the date scope. | Q | A | ------------- | --- | Bug fix? | yes | New feature? |no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #9303 | License | MIT Commits ------- 4ccafa6 Fix finder date constraints and tests
2 parents c6b1c74 + 4ccafa6 commit f132197

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public function accept()
4444
{
4545
$fileinfo = $this->current();
4646

47-
if (!$fileinfo->isFile()) {
48-
return true;
49-
}
50-
5147
$filedate = $fileinfo->getMTime();
5248
foreach ($this->comparators as $compare) {
5349
if (!$compare->test($filedate)) {

src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ public function getAcceptData()
5757
);
5858

5959
$untilLastMonth = array(
60-
'.git',
61-
'foo',
6260
'foo/bar.tmp',
6361
'test.php',
64-
'toto',
65-
'.foo',
6662
);
6763

6864
return array(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy