File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 77use Doctrine \DBAL \Result ;
88use PHPStan \ShouldNotHappenException ;
99use PHPStan \TrinaryLogic ;
10+ use PHPStan \Type \IsSuperTypeOfResult ;
1011use PHPStan \Type \ObjectType ;
1112use PHPStan \Type \Type ;
1213
@@ -51,10 +52,10 @@ public function equals(Type $type): bool
5152 return parent ::equals ($ type );
5253 }
5354
54- public function isSuperTypeOf (Type $ type ): TrinaryLogic
55+ public function isSuperTypeOf (Type $ type ): IsSuperTypeOfResult
5556 {
5657 if ($ type instanceof self) {
57- return TrinaryLogic ::createFromBoolean (
58+ return IsSuperTypeOfResult ::createFromBoolean (
5859 $ type ->rowType !== null
5960 && $ this ->rowType !== null
6061 && $ type ->rowType ->equals ($ this ->rowType )
Original file line number Diff line number Diff line change 77use Doctrine \DBAL \Statement ;
88use PHPStan \ShouldNotHappenException ;
99use PHPStan \TrinaryLogic ;
10+ use PHPStan \Type \IsSuperTypeOfResult ;
1011use PHPStan \Type \ObjectType ;
1112use PHPStan \Type \Type ;
1213
@@ -51,10 +52,10 @@ public function equals(Type $type): bool
5152 return parent ::equals ($ type );
5253 }
5354
54- public function isSuperTypeOf (Type $ type ): TrinaryLogic
55+ public function isSuperTypeOf (Type $ type ): IsSuperTypeOfResult
5556 {
5657 if ($ type instanceof self) {
57- return TrinaryLogic ::createFromBoolean (
58+ return IsSuperTypeOfResult ::createFromBoolean (
5859 $ type ->rowType !== null
5960 && $ this ->rowType !== null
6061 && $ type ->rowType ->equals ($ this ->rowType )
You can’t perform that action at this time.
0 commit comments