1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-30 17:19:54 +02:00

last_modified is always integer, no need to check for null

This commit is contained in:
Elan Ruusamäe
2014-09-18 21:51:39 +03:00
parent 4f5cdbb746
commit 6817584513

View File

@@ -141,7 +141,7 @@ class Minify_HTML_Helper {
$max = $lastModified;
/** @var Minify_Source $source */
foreach ((array)$sources as $source) {
if ($source instanceof Minify_Source && $source->getLastModified() !== null) {
if ($source instanceof Minify_Source) {
$max = max($max, $source->getLastModified());
} elseif (is_object($source) && isset($source->lastModified)) {
$max = max($max, $source->lastModified);