1
0
Fork 0

Make static translation tables in version constraint private and use ===

pull/4228/head
Nils Adermann 2015-07-14 14:12:19 +02:00
parent 8dd110e0a9
commit ccaba0d2f7
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class VersionConstraint extends SpecificConstraint
const OP_GE = 4;
const OP_NE = 5;
static $transOpStr = array(
private static $transOpStr = array(
'=' => self::OP_EQ,
'==' => self::OP_EQ,
'<' => self::OP_LT,
@ -39,7 +39,7 @@ class VersionConstraint extends SpecificConstraint
'!=' => self::OP_NE,
);
static $transOpInt = array(
private static $transOpInt = array(
self::OP_EQ => '==',
self::OP_LT => '<',
self::OP_LE => '<=',
@ -103,7 +103,7 @@ class VersionConstraint extends SpecificConstraint
// an example for the condition is <= 2.0 & < 1.0
// these kinds of comparisons always have a solution
if ($this->operator != self::OP_EQ && $noEqualOp == $providerNoEqualOp) {
if ($this->operator !== self::OP_EQ && $noEqualOp == $providerNoEqualOp) {
return true;
}