Skip to content

Commit 03309cb

Browse files
committed
removed typeEquals
1 parent e0f8cb0 commit 03309cb

22 files changed

+22
-47
lines changed

src/type/ArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function typeAssignableBy(Type $type): bool {
3232
return $keysCompatible && $elementsCompatible;
3333
}
3434

35-
public function typeEquals(Type $type): bool {
35+
public function equals(Type $type): bool {
3636
if (!($type instanceof ArrayType)) {
3737
return false;
3838
}

src/type/BooleanType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function typeAssignableBy(Type $type): bool {
1919
return $this->equals($type);
2020
}
2121

22-
public function typeEquals(Type $type): bool {
22+
public function equals(Type $type): bool {
2323
return $type instanceof BooleanType;
2424
}
2525

src/type/CompoundType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function typeAssignableBy(Type $type): bool {
112112
}
113113
}
114114

115-
public function typeEquals(Type $type): bool {
115+
public function equals(Type $type): bool {
116116
if($type instanceof CompoundType) {
117117
if(count($type->types) !== count($this->types)) {
118118
return false;

src/type/DateIntervalType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function typeAssignableBy(Type $type): bool {
1515
return $this->equals($type);
1616
}
1717

18-
public function typeEquals(Type $type): bool {
18+
public function equals(Type $type): bool {
1919
return $type instanceof DateIntervalType;
2020
}
2121

src/type/DateTimeImmutableType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function typeAssignableBy(Type $type): bool {
1616
return $this->equals($type);
1717
}
1818

19-
public function typeEquals(Type $type): bool {
19+
public function equals(Type $type): bool {
2020
return $type instanceof DateTimeImmutableType;
2121
}
2222

src/type/EnumInstanceType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function typeAssignableBy(Type $type): bool {
1919
return $type instanceof EnumInstanceType && $this->enumType->equals($type->enumType);
2020
}
2121

22-
public function typeEquals(Type $type): bool {
22+
public function equals(Type $type): bool {
2323
return $type instanceof EnumInstanceType && $this->enumType->equals($type->enumType);
2424
}
2525

src/type/FloatType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function typeAssignableBy(Type $type): bool {
1717
return $this->equals($type);
1818
}
1919

20-
public function typeEquals(Type $type): bool {
20+
public function equals(Type $type): bool {
2121
return $type instanceof FloatType;
2222
}
2323

src/type/IntegerType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function typeAssignableBy(Type $type): bool {
1717
return $this->equals($type);
1818
}
1919

20-
public function typeEquals(Type $type): bool {
20+
public function equals(Type $type): bool {
2121
return $type instanceof IntegerType;
2222
}
2323

src/type/MemberAccsessType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function typeAssignableBy(Type $type): bool {
2424
return $this->equals($type);
2525
}
2626

27-
public function typeEquals(Type $type): bool {
27+
public function equals(Type $type): bool {
2828
return ($type instanceof MemberAccsessType) && $type->memberIdentifier === $this->memberIdentifier;
2929
}
3030

src/type/MixedType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function typeAssignableBy(Type $type): bool {
2222
return true;
2323
}
2424

25-
public function typeEquals(Type $type): bool {
25+
public function equals(Type $type): bool {
2626
return $type instanceof MixedType;
2727
}
2828

0 commit comments

Comments
 (0)