File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ private function initialize(): void
147147 self ::TOKEN_SINGLE_QUOTED_STRING => '\'(?: \\\\[^ \\r \\n]|[^ \'\\r \\n \\\\])*+ \'' ,
148148 self ::TOKEN_DOUBLE_QUOTED_STRING => '"(?: \\\\[^ \\r \\n]|[^" \\r \\n \\\\])*+" ' ,
149149
150- self ::TOKEN_IDENTIFIER => '(?:[ \\\\]?+[a-z_ \\x80- \\xFF][0-9a-z_ \\x80- \\xFF]*+)++ ' ,
150+ self ::TOKEN_IDENTIFIER => '(?:[ \\\\]?+[a-z_ \\x80- \\xFF][0-9a-z_ \\x80- \\xFF- ]*+)++ ' ,
151151 self ::TOKEN_THIS_VARIABLE => '\\$this(?![0-9a-z_ \\x80- \\xFF]) ' ,
152152 self ::TOKEN_VARIABLE => '\\$[a-z_ \\x80- \\xFF][0-9a-z_ \\x80- \\xFF]*+ ' ,
153153
Original file line number Diff line number Diff line change @@ -2508,6 +2508,66 @@ public function provideExtendsTagsData(): \Iterator
25082508 ),
25092509 ]),
25102510 ];
2511+
2512+ yield [
2513+ 'class-string in @return ' ,
2514+ '/** @return class-string */ ' ,
2515+ new PhpDocNode ([
2516+ new PhpDocTagNode (
2517+ '@return ' ,
2518+ new ReturnTagValueNode (
2519+ new IdentifierTypeNode ('class-string ' ),
2520+ ''
2521+ )
2522+ ),
2523+ ]),
2524+ ];
2525+
2526+ yield [
2527+ 'class-string in @return with description ' ,
2528+ '/** @return class-string some description */ ' ,
2529+ new PhpDocNode ([
2530+ new PhpDocTagNode (
2531+ '@return ' ,
2532+ new ReturnTagValueNode (
2533+ new IdentifierTypeNode ('class-string ' ),
2534+ 'some description '
2535+ )
2536+ ),
2537+ ]),
2538+ ];
2539+
2540+ yield [
2541+ 'class-string in @param ' ,
2542+ '/** @param class-string $test */ ' ,
2543+ new PhpDocNode ([
2544+ new PhpDocTagNode (
2545+ '@param ' ,
2546+ new ParamTagValueNode (
2547+ new IdentifierTypeNode ('class-string ' ),
2548+ false ,
2549+ '$test ' ,
2550+ ''
2551+ )
2552+ ),
2553+ ]),
2554+ ];
2555+
2556+ yield [
2557+ 'class-string in @param with description ' ,
2558+ '/** @param class-string $test some description */ ' ,
2559+ new PhpDocNode ([
2560+ new PhpDocTagNode (
2561+ '@param ' ,
2562+ new ParamTagValueNode (
2563+ new IdentifierTypeNode ('class-string ' ),
2564+ false ,
2565+ '$test ' ,
2566+ 'some description '
2567+ )
2568+ ),
2569+ ]),
2570+ ];
25112571 }
25122572
25132573 public function providerDebug (): \Iterator
You can’t perform that action at this time.
0 commit comments