We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ee9651 commit 83a6298Copy full SHA for 83a6298
src/Type/CallableType.php
@@ -204,8 +204,10 @@ public function isSubTypeOf(Type $otherType): IsSuperTypeOfResult
204
return $otherType->isSuperTypeOf($this);
205
}
206
207
- return (new IsSuperTypeOfResult($otherType->isCallable(), []))
208
- ->and($otherType instanceof self ? IsSuperTypeOfResult::createYes() : IsSuperTypeOfResult::createMaybe());
+ return new IsSuperTypeOfResult(
+ $otherType->isCallable()->and($otherType instanceof self ? TrinaryLogic::createYes() : TrinaryLogic::createMaybe()),
209
+ []
210
+ );
211
212
213
public function isAcceptedBy(Type $acceptingType, bool $strictTypes): AcceptsResult
0 commit comments