From ccaba0d2f733d375bf680c3af3d0ca3b9951541f Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Tue, 14 Jul 2015 14:12:19 +0200 Subject: [PATCH] Make static translation tables in version constraint private and use === --- src/Composer/Package/LinkConstraint/VersionConstraint.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Package/LinkConstraint/VersionConstraint.php b/src/Composer/Package/LinkConstraint/VersionConstraint.php index f5aee77bc..4b6cf2ad7 100644 --- a/src/Composer/Package/LinkConstraint/VersionConstraint.php +++ b/src/Composer/Package/LinkConstraint/VersionConstraint.php @@ -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; }