diff --git a/monorepo/HydeStan/HydeStan.php b/monorepo/HydeStan/HydeStan.php index 7b2069e45fe..990978b4a1b 100644 --- a/monorepo/HydeStan/HydeStan.php +++ b/monorepo/HydeStan/HydeStan.php @@ -303,9 +303,7 @@ public function run(string $file, string $contents): void // Check for false positives $commonlyStringCastables = ['$article', '$document', 'getXmlElement()', '$url->loc', '$page->markdown', '$post->data(\'author\')']; - $strContainsAny = check_str_contains_any($commonlyStringCastables, $line); - - if ($strContainsAny) { + if (check_str_contains_any($commonlyStringCastables, $line)) { continue; }