Skip to content

Commit 4cf0bda

Browse files
pepakrizondrejmirtes
authored andcommitted
Correct implementation for StringType
1 parent a87d78a commit 4cf0bda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Type/StringType.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ public function describe(): string
1818
return 'string';
1919
}
2020

21+
public function isOffsetAccesible(): TrinaryLogic
22+
{
23+
return TrinaryLogic::createYes();
24+
}
25+
26+
public function getOffsetValueType(): Type
27+
{
28+
return new StringType();
29+
}
30+
2131
public function isCallable(): TrinaryLogic
2232
{
2333
return TrinaryLogic::createMaybe();

0 commit comments

Comments
 (0)