Skip to content

Commit 5dea9cc

Browse files
committed
more autowire
1 parent b64389f commit 5dea9cc

File tree

7 files changed

+13
-18
lines changed

7 files changed

+13
-18
lines changed

conf/config.neon

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -408,32 +408,17 @@ services:
408408
arguments:
409409
parser: @defaultAnalysisParser
410410

411-
-
412-
class: PHPStan\Analyser\IgnoreErrorExtensionProvider
413-
414-
-
415-
class: PHPStan\Analyser\LocalIgnoresProcessor
416-
417-
-
418-
class: PHPStan\Analyser\RuleErrorTransformer
419-
420411
-
421412
class: PHPStan\Analyser\Ignore\IgnoredErrorHelper
422413
arguments:
423414
ignoreErrors: %ignoreErrors%
424415
reportUnmatchedIgnoredErrors: %reportUnmatchedIgnoredErrors%
425416

426-
-
427-
class: PHPStan\Analyser\Ignore\IgnoreLexer
428-
429417
-
430418
class: PHPStan\Analyser\LazyInternalScopeFactory
431419
autowired:
432420
- PHPStan\Analyser\InternalScopeFactory
433421

434-
-
435-
class: PHPStan\Analyser\ScopeFactory
436-
437422
-
438423
class: PHPStan\Analyser\NodeScopeResolver
439424
arguments:
@@ -453,9 +438,6 @@ services:
453438
class: PHPStan\Analyser\ConstantResolver
454439
factory: @PHPStan\Analyser\ConstantResolverFactory::create()
455440

456-
-
457-
class: PHPStan\Analyser\ConstantResolverFactory
458-
459441
-
460442
implement: PHPStan\Analyser\ResultCache\ResultCacheManagerFactory
461443
arguments:

src/Analyser/ConstantResolverFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
namespace PHPStan\Analyser;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\DependencyInjection\Container;
67
use PHPStan\Php\ComposerPhpVersionFactory;
78
use PHPStan\Reflection\ReflectionProvider\ReflectionProviderProvider;
89

10+
#[AutowiredService]
911
final class ConstantResolverFactory
1012
{
1113

src/Analyser/Ignore/IgnoreLexer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
use Nette\Utils\Strings;
66
use PHPStan\Analyser\Error;
7+
use PHPStan\DependencyInjection\AutowiredService;
78
use function implode;
89
use const PREG_SET_ORDER;
910

11+
#[AutowiredService]
1012
final class IgnoreLexer
1113
{
1214

src/Analyser/IgnoreErrorExtensionProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace PHPStan\Analyser;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\DependencyInjection\Container;
67

8+
#[AutowiredService]
79
final class IgnoreErrorExtensionProvider
810
{
911

src/Analyser/LocalIgnoresProcessor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Analyser;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use function array_key_exists;
67
use function array_values;
78
use function count;
@@ -10,6 +11,7 @@
1011
/**
1112
* @phpstan-import-type LinesToIgnore from FileAnalyserResult
1213
*/
14+
#[AutowiredService]
1315
final class LocalIgnoresProcessor
1416
{
1517

src/Analyser/RuleErrorTransformer.php

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

55
use PhpParser\Node;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\Rules\FileRuleError;
78
use PHPStan\Rules\IdentifierRuleError;
89
use PHPStan\Rules\LineRuleError;
@@ -11,6 +12,7 @@
1112
use PHPStan\Rules\RuleError;
1213
use PHPStan\Rules\TipRuleError;
1314

15+
#[AutowiredService]
1416
final class RuleErrorTransformer
1517
{
1618

src/Analyser/ScopeFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
namespace PHPStan\Analyser;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
6+
57
/**
68
* @api
79
*/
10+
#[AutowiredService]
811
final class ScopeFactory
912
{
1013

0 commit comments

Comments
 (0)