Skip to content

Commit ece68e7

Browse files
jiripudilondrejmirtes
authored andcommitted
fix covariance x contravariance composition
1 parent db9bef4 commit ece68e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Generic/TemplateTypeVariance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function compose(self $other): self
8585

8686
if ($this->covariant()) {
8787
if ($other->contravariant()) {
88-
return self::createCovariant();
88+
return self::createContravariant();
8989
}
9090
if ($other->covariant()) {
9191
return self::createCovariant();

0 commit comments

Comments
 (0)