Skip to content

Commit fb9e061

Browse files
committed
add test
1 parent 5f93b95 commit fb9e061

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/PHPStan/Parser/TypeParserTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,19 @@ public function provideParseData(): array
174174
),
175175
]),
176176
],
177+
[
178+
'array{
179+
// you can never have
180+
a: int, // too many comments
181+
}',
182+
new ArrayShapeNode([
183+
new ArrayShapeItemNode(
184+
new IdentifierTypeNode('a'),
185+
false,
186+
new IdentifierTypeNode('int')
187+
),
188+
]),
189+
],
177190
[
178191
'array{
179192
a: int, // a is for after,

0 commit comments

Comments
 (0)