Thanks to visit codestin.com
Credit goes to github.com

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

-4
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

-4
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)