We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f93b95 commit fb9e061Copy full SHA for fb9e061
tests/PHPStan/Parser/TypeParserTest.php
@@ -174,6 +174,19 @@ public function provideParseData(): array
174
),
175
]),
176
],
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
+ ],
190
[
191
'array{
192
a: int, // a is for after,
0 commit comments