Skip to content

Commit

Permalink
Fix issues identified by Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 9, 2020
1 parent 581537a commit 073d302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static function getMissingRequirements(string $className, string $methodN

if (!\version_compare(\PHP_VERSION, $required['PHP']['version'], $operator->asString())) {
$missing[] = \sprintf('PHP %s %s is required.', $operator->asString(), $required['PHP']['version']);
$hint = $hint ?? 'PHP';
$hint = 'PHP';
}
} elseif (!empty($required['PHP_constraint'])) {
$version = new \PharIo\Version\Version(self::sanitizeVersionNumber(\PHP_VERSION));
Expand All @@ -173,7 +173,7 @@ public static function getMissingRequirements(string $className, string $methodN
$required['PHP_constraint']['constraint']->asString()
);

$hint = $hint ?? 'PHP_constraint';
$hint = 'PHP_constraint';
}
}

Expand Down

0 comments on commit 073d302

Please sign in to comment.