We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 414daf3 commit 2e69b9aCopy full SHA for 2e69b9a
tests/PHPStan/Parser/TypeParserTest.php
@@ -477,6 +477,24 @@ public function provideParseData(): array
477
),
478
]),
479
],
480
+ [
481
+ 'array{
482
+ a: int,
483
+ b: string
484
+ }',
485
+ new ArrayShapeNode([
486
+ new ArrayShapeItemNode(
487
+ new IdentifierTypeNode('a'),
488
+ false,
489
+ new IdentifierTypeNode('int')
490
+ ),
491
492
+ new IdentifierTypeNode('b'),
493
494
+ new IdentifierTypeNode('string')
495
496
+ ]),
497
+ ],
498
[
499
'callable(): Foo',
500
new CallableTypeNode(
0 commit comments