Skip to content

Commit

Permalink
bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 2, 2021
1 parent 62c1b09 commit 1647b19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"nette/utils": "^3.2",
"nikic/php-parser": "^4.10.4",
"phpstan/phpdoc-parser": "^0.4.9",
"phpstan/phpstan": "^0.12.79",
"phpstan/phpstan": "^0.12.80",
"phpstan/phpstan-phpunit": "^0.12.17",
"psr/simple-cache": "^1.0",
"sebastian/diff": "^4.0.4",
Expand Down
11 changes: 9 additions & 2 deletions rules/dead-code/src/ConditionEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ public function evaluate(ConditionInterface $condition)
private function evaluateVersionCompareCondition(VersionCompareCondition $versionCompareCondition)
{
$compareSign = $versionCompareCondition->getCompareSign();
if ($compareSign !== null) {
return version_compare(
(string) $versionCompareCondition->getFirstVersion(),
(string) $versionCompareCondition->getSecondVersion(),
$compareSign
);
}

return version_compare(
(string) $versionCompareCondition->getFirstVersion(),
(string) $versionCompareCondition->getSecondVersion(),
$compareSign
(string) $versionCompareCondition->getSecondVersion()
);
}

Expand Down

0 comments on commit 1647b19

Please sign in to comment.