File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Symfony/Component/Config/Resource Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function getResource()
60
60
*/
61
61
public function isFresh ($ timestamp )
62
62
{
63
- return file_exists ( $ this -> resource ) && @filemtime ($ this ->resource ) <= $ timestamp ;
63
+ return false !== ( $ filemtime = @filemtime ($ this ->resource )) && $ filemtime <= $ timestamp ;
64
64
}
65
65
66
66
public function serialize ()
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ public function isFresh($timestamp)
37
37
}
38
38
39
39
foreach ($ this ->files as $ file => $ v ) {
40
- if (! file_exists ($ file )) {
40
+ if (false === $ filemtime = @ filemtime ($ file )) {
41
41
return false ;
42
42
}
43
43
44
- if (@ filemtime ( $ file ) > $ timestamp ) {
44
+ if ($ filemtime > $ timestamp ) {
45
45
return $ this ->hash === $ this ->computeHash ();
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments