Skip to content

Commit fc3a97b

Browse files
committed
More AutowiredService
1 parent 2ac279d commit fc3a97b

File tree

7 files changed

+21
-27
lines changed

7 files changed

+21
-27
lines changed

conf/config.neon

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,6 @@ services:
535535
arguments:
536536
reflector: @betterReflectionReflector
537537

538-
-
539-
class: PHPStan\Reflection\SignatureMap\SignatureMapParser
540-
541538
-
542539
class: PHPStan\Reflection\SignatureMap\FunctionSignatureMapProvider
543540
arguments:
@@ -550,16 +547,10 @@ services:
550547
autowired:
551548
- PHPStan\Reflection\SignatureMap\Php8SignatureMapProvider
552549

553-
-
554-
class: PHPStan\Reflection\SignatureMap\SignatureMapProviderFactory
555-
556550
-
557551
class: PHPStan\Reflection\SignatureMap\SignatureMapProvider
558552
factory: @PHPStan\Reflection\SignatureMap\SignatureMapProviderFactory::create()
559553

560-
-
561-
class: PHPStan\Rules\Api\ApiRuleHelper
562-
563554
-
564555
class: PHPStan\Rules\AttributesCheck
565556
arguments:
@@ -572,17 +563,11 @@ services:
572563
reportPossiblyNonexistentGeneralArrayOffset: %reportPossiblyNonexistentGeneralArrayOffset%
573564
reportPossiblyNonexistentConstantArrayOffset: %reportPossiblyNonexistentConstantArrayOffset%
574565

575-
-
576-
class: PHPStan\Rules\ClassNameCheck
577-
578566
-
579567
class: PHPStan\Rules\ClassCaseSensitivityCheck
580568
arguments:
581569
checkInternalClassCaseSensitivity: %checkInternalClassCaseSensitivity%
582570

583-
-
584-
class: PHPStan\Rules\ClassForbiddenNameCheck
585-
586571
-
587572
class: PHPStan\Rules\Classes\LocalTypeAliasesCheck
588573
arguments:
@@ -633,15 +618,6 @@ services:
633618
autowired:
634619
- PHPStan\Rules\Exceptions\DefaultExceptionTypeResolver
635620

636-
-
637-
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInFunctionThrowsRule
638-
639-
-
640-
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule
641-
642-
-
643-
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInPropertyHookThrowsRule
644-
645621
-
646622
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInThrowsCheck
647623
arguments:
@@ -727,9 +703,6 @@ services:
727703
reportMagicProperties: %reportMagicProperties%
728704
checkDynamicProperties: %checkDynamicProperties%
729705

730-
-
731-
class: PHPStan\Rules\Properties\UninitializedPropertyRule
732-
733706
-
734707
class: PHPStan\Rules\RuleLevelHelper
735708
arguments:

conf/services.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ services:
148148
arguments:
149149
dateTimeClass: DateTimeImmutable
150150

151+
-
152+
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInFunctionThrowsRule
153+
154+
-
155+
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule
156+
157+
-
158+
class: PHPStan\Rules\Exceptions\MissingCheckedExceptionInPropertyHookThrowsRule
159+
160+
-
161+
class: PHPStan\Rules\Properties\UninitializedPropertyRule
151162

152163
betterReflectionSourceLocator:
153164
class: PHPStan\BetterReflection\SourceLocator\Type\SourceLocator

src/Reflection/SignatureMap/SignatureMapParser.php

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

55
use Nette\Utils\Strings;
66
use PHPStan\Analyser\NameScope;
7+
use PHPStan\DependencyInjection\AutowiredService;
78
use PHPStan\PhpDoc\TypeStringResolver;
89
use PHPStan\Reflection\PassedByReference;
910
use PHPStan\ShouldNotHappenException;
@@ -13,6 +14,7 @@
1314
use function str_starts_with;
1415
use function substr;
1516

17+
#[AutowiredService]
1618
final class SignatureMapParser
1719
{
1820

src/Reflection/SignatureMap/SignatureMapProviderFactory.php

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

33
namespace PHPStan\Reflection\SignatureMap;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Php\PhpVersion;
67

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

src/Rules/Api/ApiRuleHelper.php

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

55
use PHPStan\Analyser\Scope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\File\ParentDirectoryRelativePathHelper;
78
use function dirname;
89
use function pathinfo;
@@ -11,6 +12,7 @@
1112
use function strtolower;
1213
use const PATHINFO_BASENAME;
1314

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

src/Rules/ClassForbiddenNameCheck.php

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

55
use PHPStan\Classes\ForbiddenClassNameExtension;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\DependencyInjection\Container;
78
use function array_map;
89
use function array_merge;
@@ -12,6 +13,7 @@
1213
use function strpos;
1314
use function substr;
1415

16+
#[AutowiredService]
1517
final class ClassForbiddenNameCheck
1618
{
1719

src/Rules/ClassNameCheck.php

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

55
use PHPStan\Analyser\Scope;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\DependencyInjection\Container;
78
use PHPStan\Reflection\ReflectionProvider;
89
use PHPStan\Rules\RestrictedUsage\RestrictedClassNameUsageExtension;
910

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

0 commit comments

Comments
 (0)