Skip to content

Commit a69fa9f

Browse files
committed
Mark $found as a mutable var
This is so rector knows that it's mutable and doesn't remove the if statement.
1 parent 5f3e7bf commit a69fa9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Options.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ public static function getOption(
425425
$cacheable = ! $option_spec->hasBlobValue();
426426

427427
if ( $cacheable ) {
428+
/** @var bool $found */
428429
$found = false;
429430
$v = wp_cache_get(
430431
$option_spec->name . '_value',

0 commit comments

Comments
 (0)