public function testForEquality(PhpType $that)
 {
     if (null !== ($rs = parent::testForEquality($that))) {
         return $rs;
     }
     if ($that->isIntegerType() || $that->isDoubleType() || $that->isNullType() || $that->isResourceType() || $that->isNullType() || $that->isBooleanType()) {
         return TernaryValue::get('false');
     }
     return TernaryValue::get('unknown');
 }
 public function testForEquality(PhpType $that)
 {
     if (null !== ($rs = parent::testForEquality($that))) {
         return $rs;
     }
     if ($that->isObjectType() || $that->isNoObjectType() || $that->isArrayType() || $that->isNullType() || $that->isCallableType()) {
         return TernaryValue::get('false');
     }
     return TernaryValue::get('unknown');
 }
 public function testForEquality(PhpType $that)
 {
     $rs = parent::testForEquality($that);
     if (null !== $rs) {
         return $rs;
     }
     if ($that->isUnknownType() || $that->isResourceType() || $that->isSubTypeOf($this->registry->getNativeType('object_number_string_boolean'))) {
         return TernaryValue::get('unknown');
     }
     return TernaryValue::get('false');
 }
 public function testForEquality(PhpType $that)
 {
     $rs = parent::testForEquality($that);
     if ($rs !== null) {
         return $rs;
     }
     if ($that->isUnknownType() || $that->isNullType() || $that->isStringType() || $that->isIntegerType() || $that->isResourceType() || $that->isDoubleType()) {
         return TernaryValue::get('unknown');
     }
     return TernaryValue::get('false');
 }
 public function testForEquality(PhpType $that)
 {
     $rs = parent::testForEquality($that);
     if ($rs !== null) {
         return $rs;
     }
     if ($that->isNullType()) {
         return TernaryValue::get('true');
     }
     if ($that->isUnknownType() || $that->isNullable()) {
         return TernaryValue::get('unknown');
     }
     return TernaryValue::get('false');
 }
 public function testForEquality(PhpType $that)
 {
     $rs = parent::testForEquality($that);
     if (null !== $rs) {
         return $rs;
     }
     // Most of (all?) of the array cases are already handled by the
     // default implementation.
     return TernaryValue::get('false');
 }