We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b27b84 commit 8c4ef2aCopy full SHA for 8c4ef2a
tests/PHPStan/Parser/TypeParserTest.php
@@ -447,6 +447,24 @@ public function provideParseData(): array
447
Lexer::TOKEN_CLOSE_CURLY_BRACKET
448
),
449
],
450
+ [
451
+ 'array{"a": int}',
452
+ new \PHPStan\PhpDocParser\Parser\ParserException(
453
+ '"a"',
454
+ Lexer::TOKEN_DOUBLE_QUOTED_STRING,
455
+ 6,
456
+ Lexer::TOKEN_IDENTIFIER
457
+ ),
458
+ ],
459
460
+ 'array{\'a\': int}',
461
462
+ '\'a\'',
463
+ Lexer::TOKEN_SINGLE_QUOTED_STRING,
464
465
466
467
468
[
469
'callable(): Foo',
470
new CallableTypeNode(
0 commit comments