Skip to content

Commit 5d756a0

Browse files
committed
A few more services introduced with #[AutowiredService]
1 parent e889abb commit 5d756a0

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

conf/config.neon

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,6 @@ services:
350350
tags:
351351
- phpstan.parser.richParserNodeVisitor
352352

353-
-
354-
class: PHPStan\Node\Printer\ExprPrinter
355-
356353
-
357354
class: PHPStan\Node\Printer\Printer
358355
autowired:
@@ -403,12 +400,6 @@ services:
403400
-
404401
class: PHPStan\PhpDocParser\Printer\Printer
405402

406-
-
407-
class: PHPStan\PhpDoc\PhpDocInheritanceResolver
408-
409-
-
410-
class: PHPStan\PhpDoc\PhpDocNodeResolver
411-
412403
-
413404
class: PHPStan\PhpDoc\PhpDocStringResolver
414405

src/Node/Printer/ExprPrinter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
namespace PHPStan\Node\Printer;
44

55
use PhpParser\Node\Expr;
6+
use PHPStan\DependencyInjection\AutowiredService;
67

78
/**
89
* @api
910
*/
11+
#[AutowiredService]
1012
final class ExprPrinter
1113
{
1214

src/PhpDoc/PhpDocInheritanceResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
namespace PHPStan\PhpDoc;
44

55
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionParameter;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\Reflection\ClassReflection;
78
use PHPStan\Type\FileTypeMapper;
89
use function array_map;
910
use function strtolower;
1011

12+
#[AutowiredService]
1113
final class PhpDocInheritanceResolver
1214
{
1315

src/PhpDoc/PhpDocNodeResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\PhpDoc;
44

55
use PHPStan\Analyser\NameScope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\PhpDoc\Tag\AssertTag;
78
use PHPStan\PhpDoc\Tag\AssertTagParameter;
89
use PHPStan\PhpDoc\Tag\DeprecatedTag;
@@ -49,6 +50,7 @@
4950
use function str_starts_with;
5051
use function substr;
5152

53+
#[AutowiredService]
5254
final class PhpDocNodeResolver
5355
{
5456

0 commit comments

Comments
 (0)