Skip to content

Commit e2e2e77

Browse files
committed
PHP 7.4+ allows return type covariance
1 parent 60eb3ea commit e2e2e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Generic/GenericStaticType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getStaticObjectType(): ObjectType
7272
return $this->staticObjectType;
7373
}
7474

75-
public function changeBaseClass(ClassReflection $classReflection): StaticType
75+
public function changeBaseClass(ClassReflection $classReflection): self
7676
{
7777
if ($classReflection->getName() === $this->getClassName()) {
7878
return $this;

0 commit comments

Comments
 (0)