22
33namespace PHPStan \Type ;
44
5- use PHPStan \TrinaryLogic ;
65use PHPStan \Type \Constant \ConstantArrayType ;
76use PHPStan \Type \Constant \ConstantFloatType ;
87use PHPStan \Type \Constant \ConstantIntegerType ;
1110use PHPStan \Type \Traits \NonGenericTypeTrait ;
1211use PHPStan \Type \Traits \NonIterableTypeTrait ;
1312use PHPStan \Type \Traits \NonObjectTypeTrait ;
13+ use PHPStan \Type \Traits \NonOffsetAccessibleTypeTrait ;
1414use PHPStan \Type \Traits \UndecidedBooleanTypeTrait ;
1515use PHPStan \Type \Traits \UndecidedComparisonTypeTrait ;
1616
@@ -25,6 +25,7 @@ class BooleanType implements Type
2525 use UndecidedBooleanTypeTrait;
2626 use UndecidedComparisonTypeTrait;
2727 use NonGenericTypeTrait;
28+ use NonOffsetAccessibleTypeTrait;
2829
2930 /** @api */
3031 public function __construct ()
@@ -74,26 +75,6 @@ public function toArray(): Type
7475 );
7576 }
7677
77- public function isOffsetAccessible (): TrinaryLogic
78- {
79- return TrinaryLogic::createNo ();
80- }
81-
82- public function hasOffsetValueType (Type $ offsetType ): TrinaryLogic
83- {
84- return TrinaryLogic::createNo ();
85- }
86-
87- public function getOffsetValueType (Type $ offsetType ): Type
88- {
89- return new ErrorType ();
90- }
91-
92- public function setOffsetValueType (?Type $ offsetType , Type $ valueType , bool $ unionValues = true ): Type
93- {
94- return new ErrorType ();
95- }
96-
9778 /**
9879 * @param mixed[] $properties
9980 */
0 commit comments