Skip to content

Commit b47a204

Browse files
committed
Remove dead @phpstan-ignore in traits
1 parent 43aed2c commit b47a204

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Type/Generic/TemplateTypeTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function subtract(Type $typeToRemove): Type
132132
public function getTypeWithoutSubtractedType(): Type
133133
{
134134
$bound = $this->getBound();
135-
if (!$bound instanceof SubtractableType) { // @phpstan-ignore instanceof.alwaysTrue
135+
if (!$bound instanceof SubtractableType) {
136136
return $this;
137137
}
138138

@@ -149,7 +149,7 @@ public function getTypeWithoutSubtractedType(): Type
149149
public function changeSubtractedType(?Type $subtractedType): Type
150150
{
151151
$bound = $this->getBound();
152-
if (!$bound instanceof SubtractableType) { // @phpstan-ignore instanceof.alwaysTrue
152+
if (!$bound instanceof SubtractableType) {
153153
return $this;
154154
}
155155

@@ -166,7 +166,7 @@ public function changeSubtractedType(?Type $subtractedType): Type
166166
public function getSubtractedType(): ?Type
167167
{
168168
$bound = $this->getBound();
169-
if (!$bound instanceof SubtractableType) { // @phpstan-ignore instanceof.alwaysTrue
169+
if (!$bound instanceof SubtractableType) {
170170
return null;
171171
}
172172

0 commit comments

Comments
 (0)