Skip to content

Commit

Permalink
Force bool on WP_DEBUG check for cache templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Ek committed May 10, 2016
1 parent 236d18a commit 789a83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 789a83f

@vinkla
Copy link
Collaborator

@vinkla vinkla commented on 789a83f May 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.