Skip to content

Commit

Permalink
don't shadow/overwrite input variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alcohol committed Dec 2, 2019
1 parent a89df99 commit 14feed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Semver.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public static function satisfies($version, $constraints)

$versionParser = self::$versionParser;
$provider = new Constraint('==', $versionParser->normalize($version));
$constraints = $versionParser->parseConstraints($constraints);
$parsedConstraints = $versionParser->parseConstraints($constraints);

return $constraints->matches($provider);
return $parsedConstraints->matches($provider);
}

/**
Expand Down

0 comments on commit 14feed2

Please sign in to comment.