Skip to content

Commit 06ce6bb

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: revert typo fix [Form] Fix ChoiceType to ensure submitted data is not nested unnecessarily Test inline styles with non-decorated formatter Fix RuntimeException when an Emacs buffer is modified [Yaml] add tests for specific mapping keys
2 parents 284c23a + 5d72c4b commit 06ce6bb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Resource/DirectoryResource.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,15 @@ public function isFresh($timestamp)
8484
continue;
8585
}
8686

87+
// for broken links
88+
try {
89+
$fileMTime = $file->getMTime();
90+
} catch (\RuntimeException $e) {
91+
continue;
92+
}
93+
8794
// early return if a file's mtime exceeds the passed timestamp
88-
if ($timestamp < $file->getMTime()) {
95+
if ($timestamp < $fileMTime) {
8996
return false;
9097
}
9198
}

0 commit comments

Comments
 (0)