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

Browse filesBrowse files
committed
Fix finder date constraints and tests
1 parent 1206176 commit 4ccafa6
Copy full SHA for 4ccafa6

File tree

Expand file treeCollapse file tree

2 files changed

+0
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-8
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Iterator/DateRangeFilterIterator.php
-4Lines 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)) {
Collapse file

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

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