Skip to content

Commit 4a00482

Browse files
committed
Fixes after PHPStan update
1 parent c551adc commit 4a00482

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Type/Doctrine/Query/QueryType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace PHPStan\Type\Doctrine\Query;
44

5-
use PHPStan\TrinaryLogic;
65
use PHPStan\Type\Generic\GenericObjectType;
6+
use PHPStan\Type\IsSuperTypeOfResult;
77
use PHPStan\Type\MixedType;
88
use PHPStan\Type\Type;
99

@@ -44,10 +44,10 @@ public function changeSubtractedType(?Type $subtractedType): Type
4444
return new self('Doctrine\ORM\Query', $this->indexType, $this->resultType, $subtractedType);
4545
}
4646

47-
public function isSuperTypeOf(Type $type): TrinaryLogic
47+
public function isSuperTypeOf(Type $type): IsSuperTypeOfResult
4848
{
4949
if ($type instanceof self) {
50-
return TrinaryLogic::createFromBoolean($this->equals($type));
50+
return IsSuperTypeOfResult::createFromBoolean($this->equals($type));
5151
}
5252

5353
return parent::isSuperTypeOf($type);

src/Type/Doctrine/QueryBuilder/BranchingQueryBuilderType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace PHPStan\Type\Doctrine\QueryBuilder;
44

5-
use PHPStan\TrinaryLogic;
5+
use PHPStan\Type\IsSuperTypeOfResult;
66
use PHPStan\Type\Type;
77
use function array_keys;
88
use function count;
@@ -35,10 +35,10 @@ public function equals(Type $type): bool
3535
return parent::equals($type);
3636
}
3737

38-
public function isSuperTypeOf(Type $type): TrinaryLogic
38+
public function isSuperTypeOf(Type $type): IsSuperTypeOfResult
3939
{
4040
if ($type instanceof parent) {
41-
return TrinaryLogic::createFromBoolean($this->equals($type));
41+
return IsSuperTypeOfResult::createFromBoolean($this->equals($type));
4242
}
4343

4444
return parent::isSuperTypeOf($type);

0 commit comments

Comments
 (0)