Skip to content
Permalink
Browse files

Fix psalm running

  • Loading branch information
muglug committed Jan 1, 2020
1 parent 4021d67 commit 4630d19d45455f6f3026dc8a870bbfa720c44ea0
@@ -211,7 +211,7 @@ public static function analyze(
new CodeLocation($source, $stmt->class),
$statements_analyzer->getSuppressedIssues(),
$stmt->class instanceof PhpParser\Node\Name
&& !count($stmt->class->parts) !== 1
&& count($stmt->class->parts) === 1
&& in_array(strtolower($stmt->class->parts[0]), ['self', 'static'], true)
)) {
return false;
@@ -303,6 +303,7 @@ public function checkGenericParams(
}

foreach ($this->type_params as $i => $type_param) {
/** @psalm-suppress RedundantCondition */
if ($type_param->check(
$source,
$code_location,

0 comments on commit 4630d19

Please sign in to comment.
You can’t perform that action at this time.