Skip to content

Commit

Permalink
Fixes after PHPStan update
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 7, 2024
1 parent c551adc commit 4a00482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Type/Doctrine/Query/QueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace PHPStan\Type\Doctrine\Query;

use PHPStan\TrinaryLogic;
use PHPStan\Type\Generic\GenericObjectType;
use PHPStan\Type\IsSuperTypeOfResult;
use PHPStan\Type\MixedType;
use PHPStan\Type\Type;

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

public function isSuperTypeOf(Type $type): TrinaryLogic
public function isSuperTypeOf(Type $type): IsSuperTypeOfResult
{
if ($type instanceof self) {
return TrinaryLogic::createFromBoolean($this->equals($type));
return IsSuperTypeOfResult::createFromBoolean($this->equals($type));
}

return parent::isSuperTypeOf($type);
Expand Down
6 changes: 3 additions & 3 deletions src/Type/Doctrine/QueryBuilder/BranchingQueryBuilderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PHPStan\Type\Doctrine\QueryBuilder;

use PHPStan\TrinaryLogic;
use PHPStan\Type\IsSuperTypeOfResult;
use PHPStan\Type\Type;
use function array_keys;
use function count;
Expand Down Expand Up @@ -35,10 +35,10 @@ public function equals(Type $type): bool
return parent::equals($type);
}

public function isSuperTypeOf(Type $type): TrinaryLogic
public function isSuperTypeOf(Type $type): IsSuperTypeOfResult
{
if ($type instanceof parent) {
return TrinaryLogic::createFromBoolean($this->equals($type));
return IsSuperTypeOfResult::createFromBoolean($this->equals($type));
}

return parent::isSuperTypeOf($type);
Expand Down

0 comments on commit 4a00482

Please sign in to comment.