Skip to content

Commit a0a1139

Browse files
committed
Add offsetGet($string) test case
1 parent c829e53 commit a0a1139

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Unit/Type/data/object-storage-stub-files.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function foo(): void
2929
}
3030

3131
assertType(self::class . '|null', $objectStorage->offsetGet(0));
32+
assertType(self::class . '|null', $objectStorage->offsetGet('0'));
3233
assertType(self::class . '|null', $objectStorage->current());
3334

3435
// We ignore errors in the next line as this will produce an

0 commit comments

Comments
 (0)