1
0
Fork 0

Handle the = comparison operator for versions the same as ==

pull/9/head
Nils Adermann 2011-08-20 23:04:16 -04:00
parent 6118c00086
commit 03642a40b4
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ class VersionConstraint extends SpecificConstraint
*/
public function __construct($operator, $version)
{
if ('=' === $operator) {
$operator = '==';
}
// TODO add third parameter releaseType and match that too
// TODO add fourth parameter devSnapshot and match that too
$this->operator = $operator;