From 789a83f461f07396593b31190b34f038078309ba Mon Sep 17 00:00:00 2001 From: Andreas Ek Date: Tue, 10 May 2016 11:02:07 +0200 Subject: [PATCH] Force bool on WP_DEBUG check for cache templates --- src/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.php b/src/Cache.php index bc661b0..ffcb809 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -18,7 +18,7 @@ public static function expired($blade, $view, $path) { $result = false; - $wp_debug = defined('WP_DEBUG') && true === WP_DEBUG; + $wp_debug = ((bool)defined('WP_DEBUG') && true === WP_DEBUG); if ($wp_debug) { return true;