Commit e0e88ed 1 parent d4af0ff commit e0e88ed Copy full SHA for e0e88ed
File tree 4 files changed +5
-18
lines changed
4 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 23
23
"nikic/php-parser" : " ^5.4.0" ,
24
24
"ocramius/package-versions" : " ^2.9" ,
25
25
"ondram/ci-detector" : " ^4.2" ,
26
- "phpstan/phpdoc-parser" : " ^2.0" ,
26
+ "phpstan/phpdoc-parser" : " ^2.0.2 " ,
27
27
"phpstan/phpstan" : " ^2.1.3" ,
28
28
"react/event-loop" : " ^1.5" ,
29
29
"react/promise" : " ^3.2" ,
Original file line number Diff line number Diff line change 264
264
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/Node.php ' ;
265
265
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/NodeVisitor.php ' ;
266
266
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php ' ;
267
+ require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/Comment.php ' ;
267
268
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/NodeAttributes.php ' ;
268
269
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprNode.php ' ;
269
270
require_once __DIR__ . '/../../../vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTagValueNode.php ' ;
Original file line number Diff line number Diff line change 264
264
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/Node.php ' ;
265
265
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/NodeVisitor.php ' ;
266
266
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php ' ;
267
+ require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/Comment.php ' ;
267
268
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/NodeAttributes.php ' ;
268
269
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/ConstExprNode.php ' ;
269
270
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocTagValueNode.php ' ;
Original file line number Diff line number Diff line change 12
12
use PHPStan \Analyser \ScopeFactory ;
13
13
use PHPStan \Parser \Parser ;
14
14
use PHPStan \PhpDoc \TypeNodeResolver ;
15
- use PHPStan \PhpDocParser \Parser \ConstExprParser ;
16
- use PHPStan \PhpDocParser \Parser \TypeParser ;
17
15
use PHPStan \PhpDocParser \ParserConfig ;
18
16
use PHPStan \Reflection \ReflectionProvider ;
19
17
use Rector \Application \ChangedNodeScopeRefresher ;
@@ -423,21 +421,6 @@ public function create(): RectorConfig
423
421
$ rectorConfig ->singleton (FileProcessor::class);
424
422
$ rectorConfig ->singleton (PostFileProcessor::class);
425
423
426
- // phpdoc-parser
427
- $ rectorConfig ->when (TypeParser::class)
428
- ->needs ('$usedAttributes ' )
429
- ->give ([
430
- 'lines ' => true ,
431
- 'indexes ' => true ,
432
- ]);
433
-
434
- $ rectorConfig ->when (ConstExprParser::class)
435
- ->needs ('$usedAttributes ' )
436
- ->give ([
437
- 'lines ' => true ,
438
- 'indexes ' => true ,
439
- ]);
440
-
441
424
$ rectorConfig ->when (RectorNodeTraverser::class)
442
425
->needs ('$rectors ' )
443
426
->giveTagged (RectorInterface::class);
@@ -682,11 +665,13 @@ static function (
682
665
->needs ('$phpDocNodeVisitors ' )
683
666
->giveTagged (BasePhpDocNodeVisitorInterface::class);
684
667
668
+ // phpdoc-parser
685
669
$ rectorConfig ->singleton (
686
670
ParserConfig::class,
687
671
static fn (Container $ container ): ParserConfig => new ParserConfig ([
688
672
'lines ' => true ,
689
673
'indexes ' => true ,
674
+ 'comments ' => true ,
690
675
])
691
676
);
692
677
You can’t perform that action at this time.
0 commit comments