From: Aaron Schulz Date: Wed, 10 Jun 2015 21:09:20 +0000 (-0700) Subject: Use instanceof in ParserCache::getKey to help IDEs X-Git-Tag: 1.31.0-rc.0~11120 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=8af83f4ff833b40ce9497e25ff2df439a0fa18a3;p=lhc%2Fweb%2Fwiklou.git Use instanceof in ParserCache::getKey to help IDEs Change-Id: I772f53ee28ade5da499fe05259a17fed5cc52adb --- 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();