diff --git a/src/Type/Accessory/HasMethodType.php b/src/Type/Accessory/HasMethodType.php index 94364bb21f..b59a77c788 100644 --- a/src/Type/Accessory/HasMethodType.php +++ b/src/Type/Accessory/HasMethodType.php @@ -111,11 +111,6 @@ public function describe(VerbosityLevel $level): string return sprintf('hasMethod(%s)', $this->methodName); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function hasMethod(string $methodName): TrinaryLogic { if ($this->getCanonicalMethodName() === strtolower($methodName)) { diff --git a/src/Type/Accessory/HasPropertyType.php b/src/Type/Accessory/HasPropertyType.php index 71b6b42759..0c2ca8e47a 100644 --- a/src/Type/Accessory/HasPropertyType.php +++ b/src/Type/Accessory/HasPropertyType.php @@ -106,11 +106,6 @@ public function describe(VerbosityLevel $level): string return sprintf('hasProperty(%s)', $this->propertyName); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function hasProperty(string $propertyName): TrinaryLogic { if ($this->propertyName === $propertyName) { diff --git a/src/Type/CallableType.php b/src/Type/CallableType.php index 568c847711..ddb857fc99 100644 --- a/src/Type/CallableType.php +++ b/src/Type/CallableType.php @@ -340,11 +340,6 @@ public function toCoercedArgumentType(bool $strictTypes): Type ); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function getTemplateTypeMap(): TemplateTypeMap { return $this->templateTypeMap; diff --git a/src/Type/IterableType.php b/src/Type/IterableType.php index 2242c477a5..c2b44b809b 100644 --- a/src/Type/IterableType.php +++ b/src/Type/IterableType.php @@ -256,11 +256,6 @@ public function toCoercedArgumentType(bool $strictTypes): Type ); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function isIterable(): TrinaryLogic { return TrinaryLogic::createYes(); diff --git a/src/Type/ObjectShapeType.php b/src/Type/ObjectShapeType.php index 1e35513f0b..668eac366f 100644 --- a/src/Type/ObjectShapeType.php +++ b/src/Type/ObjectShapeType.php @@ -420,11 +420,6 @@ public function describe(VerbosityLevel $level): string ); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function getEnumCases(): array { return []; diff --git a/src/Type/ObjectWithoutClassType.php b/src/Type/ObjectWithoutClassType.php index 3abe064e3f..8b8fb422a8 100644 --- a/src/Type/ObjectWithoutClassType.php +++ b/src/Type/ObjectWithoutClassType.php @@ -134,11 +134,6 @@ function () use ($level): string { ); } - public function isOffsetAccessLegal(): TrinaryLogic - { - return TrinaryLogic::createMaybe(); - } - public function getEnumCases(): array { return []; diff --git a/src/Type/Traits/MaybeOffsetAccessibleTypeTrait.php b/src/Type/Traits/MaybeOffsetAccessibleTypeTrait.php index 6e83395e95..c0f0f44ea2 100644 --- a/src/Type/Traits/MaybeOffsetAccessibleTypeTrait.php +++ b/src/Type/Traits/MaybeOffsetAccessibleTypeTrait.php @@ -14,6 +14,11 @@ public function isOffsetAccessible(): TrinaryLogic return TrinaryLogic::createMaybe(); } + public function isOffsetAccessLegal(): TrinaryLogic + { + return TrinaryLogic::createMaybe(); + } + public function hasOffsetValueType(Type $offsetType): TrinaryLogic { return TrinaryLogic::createMaybe();