8000 fix issues of previous commit · SimonHeimberg/symfony@b6fe33b · GitHub
[go: up one dir, main page]

Skip to content

Commit b6fe33b

Browse files
fix issues of previous commit
1 parent b83c777 commit b6fe33b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Config/Resource/DirectoryResource.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function isFresh($timestamp)
7474
return false;
7575
}
7676

77-
if (filemtime($this->resource) < $timestamp) {
78-
return true;
77+
if (filemtime($this->resource) > $timestamp) {
78+
return false;
7979
}
8080
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->resource), \RecursiveIteratorIterator::SELF_FIRST) as $file) {
8181
// if regex filtering is enabled only check matching files
@@ -89,12 +89,12 @@ public function isFresh($timestamp)
8989
continue;
9090
}
9191

92-
if ($file->getMTime() < $timestamp) {
93-
return true
92+
if ($file->getMTime() > $timestamp) {
93+
return false;
9494
}
9595
}
9696

97-
return false;
97+
return true;
9898
}
9999

100100
public function serialize()

0 commit comments

Comments
 (0)
0