Skip to content
Prev Previous commit
Next Next commit
single comma
  • Loading branch information
shmax committed Oct 22, 2019
commit 2e69b9aac9148471cf6fb7e57de3af88aad5d03e
18 changes: 18 additions & 0 deletions tests/PHPStan/Parser/TypeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,24 @@ public function provideParseData(): array
),
]),
],
[
'array{
a: int,
b: string
}',
new ArrayShapeNode([
new ArrayShapeItemNode(
new IdentifierTypeNode('a'),
false,
new IdentifierTypeNode('int')
),
new ArrayShapeItemNode(
new IdentifierTypeNode('b'),
false,
new IdentifierTypeNode('string')
),
]),
],
[
'callable(): Foo',
new CallableTypeNode(
Expand Down