File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments