Skip to content

Commit 4ccafa6

Browse files
committed
Fix finder date constraints and tests
1 parent 1206176 commit 4ccafa6

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