From 8af83f4ff833b40ce9497e25ff2df439a0fa18a3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 10 Jun 2015 14:09:20 -0700 Subject: [PATCH] Use instanceof in ParserCache::getKey to help IDEs Change-Id: I772f53ee28ade5da499fe05259a17fed5cc52adb --- includes/parser/ParserCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index 98d3f7f03e..16dde0d2f1 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -141,7 +141,7 @@ class ParserCache { // Determine the options which affect this article $optionsKey = $this->mMemc->get( $this->getOptionsKey( $article ) ); - if ( $optionsKey != false ) { + if ( $optionsKey instanceof CacheTime ) { if ( !$useOutdated && $optionsKey->expired( $article->getTouched() ) ) { wfIncrStats( "pcache.miss.expired" ); $cacheTime = $optionsKey->getCacheTime(); -- 2.20.1