Skip to content

Commit d8279ff

Browse files
committed
autowire
1 parent 4153c9d commit d8279ff

10 files changed

+18
-40
lines changed

conf/config.neon

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,34 +1369,6 @@ services:
13691369
tags:
13701370
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
13711371

1372-
-
1373-
class: PHPStan\Type\Php\IsCallableFunctionTypeSpecifyingExtension
1374-
tags:
1375-
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
1376-
1377-
-
1378-
class: PHPStan\Type\Php\IsIterableFunctionTypeSpecifyingExtension
1379-
tags:
1380-
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
1381-
1382-
-
1383-
class: PHPStan\Type\Php\IsSubclassOfFunctionTypeSpecifyingExtension
1384-
tags:
1385-
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
1386-
1387-
-
1388-
class: PHPStan\Type\Php\IsAFunctionTypeSpecifyingExtension
1389-
tags:
1390-
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
1391-
1392-
-
1393-
class: PHPStan\Type\Php\IsAFunctionTypeSpecifyingHelper
1394-
1395-
-
1396-
class: PHPStan\Type\Php\CtypeDigitFunctionTypeSpecifyingExtension
1397-
tags:
1398-
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
1399-
14001372
-
14011373
class: PHPStan\Type\Php\TypeSpecifyingFunctionsDynamicReturnTypeExtension
14021374
arguments:
@@ -1415,12 +1387,6 @@ services:
14151387
tags:
14161388
- phpstan.broker.dynamicFunctionReturnTypeExtension
14171389

1418-
-
1419-
class: PHPStan\Type\Php\XMLReaderOpenReturnTypeExtension
1420-
tags:
1421-
- phpstan.broker.dynamicMethodReturnTypeExtension
1422-
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
1423-
14241390
-
14251391
class: PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension
14261392
arguments:
@@ -1628,12 +1594,6 @@ services:
16281594
autowired:
16291595
- PHPStan\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber
16301596

1631-
-
1632-
class: PHPStan\Reflection\BetterReflection\SourceStubber\ReflectionSourceStubberFactory
1633-
1634-
-
1635-
class: PHPStan\Reflection\Deprecation\DeprecationProvider
1636-
16371597
php8Lexer:
16381598
class: PhpParser\Lexer\Emulative
16391599
factory: @PHPStan\Parser\LexerFactory::createEmulative()

src/Reflection/BetterReflection/SourceStubber/ReflectionSourceStubberFactory.php

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

55
use PHPStan\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber;
6+
use PHPStan\DependencyInjection\AutowiredService;
67
use PHPStan\Node\Printer\Printer;
78
use PHPStan\Php\PhpVersion;
89

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

src/Reflection/Deprecation/DeprecationProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod;
1212
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionProperty;
1313
use PHPStan\BetterReflection\Reflection\ReflectionConstant;
14+
use PHPStan\DependencyInjection\AutowiredService;
1415
use PHPStan\DependencyInjection\Container;
1516

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

src/Type/Php/CtypeDigitFunctionTypeSpecifyingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PHPStan\Analyser\TypeSpecifier;
1010
use PHPStan\Analyser\TypeSpecifierAwareExtension;
1111
use PHPStan\Analyser\TypeSpecifierContext;
12+
use PHPStan\DependencyInjection\AutowiredService;
1213
use PHPStan\Reflection\FunctionReflection;
1314
use PHPStan\ShouldNotHappenException;
1415
use PHPStan\Type\Accessory\AccessoryNumericStringType;
@@ -21,6 +22,7 @@
2122
use PHPStan\Type\UnionType;
2223
use function strtolower;
2324

25+
#[AutowiredService]
2426
final class CtypeDigitFunctionTypeSpecifyingExtension implements FunctionTypeSpecifyingExtension, TypeSpecifierAwareExtension
2527
{
2628

src/Type/Php/IsAFunctionTypeSpecifyingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
use PHPStan\Analyser\TypeSpecifier;
99
use PHPStan\Analyser\TypeSpecifierAwareExtension;
1010
use PHPStan\Analyser\TypeSpecifierContext;
11+
use PHPStan\DependencyInjection\AutowiredService;
1112
use PHPStan\Reflection\FunctionReflection;
1213
use PHPStan\Type\Constant\ConstantBooleanType;
1314
use PHPStan\Type\Constant\ConstantStringType;
1415
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1516
use function count;
1617
use function strtolower;
1718

19+
#[AutowiredService]
1820
final class IsAFunctionTypeSpecifyingExtension implements FunctionTypeSpecifyingExtension, TypeSpecifierAwareExtension
1921
{
2022

src/Type/Php/IsAFunctionTypeSpecifyingHelper.php

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

33
namespace PHPStan\Type\Php;
44

5+
use PHPStan\DependencyInjection\AutowiredService;
56
use PHPStan\Type\ClassStringType;
67
use PHPStan\Type\Constant\ConstantStringType;
78
use PHPStan\Type\Generic\GenericClassStringType;
@@ -16,6 +17,7 @@
1617
use function array_unique;
1718
use function array_values;
1819

20+
#[AutowiredService]
1921
final class IsAFunctionTypeSpecifyingHelper
2022
{
2123

src/Type/Php/IsCallableFunctionTypeSpecifyingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
use PHPStan\Analyser\TypeSpecifier;
1212
use PHPStan\Analyser\TypeSpecifierAwareExtension;
1313
use PHPStan\Analyser\TypeSpecifierContext;
14+
use PHPStan\DependencyInjection\AutowiredService;
1415
use PHPStan\Reflection\FunctionReflection;
1516
use PHPStan\ShouldNotHappenException;
1617
use PHPStan\Type\CallableType;
1718
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1819
use function count;
1920
use function strtolower;
2021

22+
#[AutowiredService]
2123
final class IsCallableFunctionTypeSpecifyingExtension implements FunctionTypeSpecifyingExtension, TypeSpecifierAwareExtension
2224
{
2325

src/Type/Php/IsIterableFunctionTypeSpecifyingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
use PHPStan\Analyser\TypeSpecifier;
99
use PHPStan\Analyser\TypeSpecifierAwareExtension;
1010
use PHPStan\Analyser\TypeSpecifierContext;
11+
use PHPStan\DependencyInjection\AutowiredService;
1112
use PHPStan\Reflection\FunctionReflection;
1213
use PHPStan\ShouldNotHappenException;
1314
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1415
use PHPStan\Type\IterableType;
1516
use PHPStan\Type\MixedType;
1617
use function strtolower;
1718

19+
#[AutowiredService]
1820
final class IsIterableFunctionTypeSpecifyingExtension implements FunctionTypeSpecifyingExtension, TypeSpecifierAwareExtension
1921
{
2022

src/Type/Php/IsSubclassOfFunctionTypeSpecifyingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
use PHPStan\Analyser\TypeSpecifier;
99
use PHPStan\Analyser\TypeSpecifierAwareExtension;
1010
use PHPStan\Analyser\TypeSpecifierContext;
11+
use PHPStan\DependencyInjection\AutowiredService;
1112
use PHPStan\Reflection\FunctionReflection;
1213
use PHPStan\Type\Constant\ConstantBooleanType;
1314
use PHPStan\Type\FunctionTypeSpecifyingExtension;
1415
use PHPStan\Type\Generic\GenericClassStringType;
1516
use function count;
1617
use function strtolower;
1718

19+
#[AutowiredService]
1820
final class IsSubclassOfFunctionTypeSpecifyingExtension implements FunctionTypeSpecifyingExtension, TypeSpecifierAwareExtension
1921
{
2022

src/Type/Php/XMLReaderOpenReturnTypeExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PhpParser\Node\Expr\MethodCall;
66
use PhpParser\Node\Expr\StaticCall;
77
use PHPStan\Analyser\Scope;
8+
use PHPStan\DependencyInjection\AutowiredService;
89
use PHPStan\Reflection\MethodReflection;
910
use PHPStan\Type\BooleanType;
1011
use PHPStan\Type\Constant\ConstantBooleanType;
@@ -14,6 +15,7 @@
1415
use PHPStan\Type\Type;
1516
use PHPStan\Type\UnionType;
1617

18+
#[AutowiredService]
1719
final class XMLReaderOpenReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicStaticMethodReturnTypeExtension
1820
{
1921

0 commit comments

Comments
 (0)