Skip to content

Commit 61c78a6

Browse files
committed
More AutowiredService
1 parent 0210ec2 commit 61c78a6

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

conf/config.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -833,16 +833,6 @@ services:
833833
tags:
834834
- phpstan.broker.dynamicFunctionReturnTypeExtension
835835

836-
-
837-
class: PHPStan\Type\Php\LtrimFunctionReturnTypeExtension
838-
tags:
839-
- phpstan.broker.dynamicFunctionReturnTypeExtension
840-
841-
-
842-
class: PHPStan\Type\Php\TrimFunctionDynamicReturnTypeExtension
843-
tags:
844-
- phpstan.broker.dynamicFunctionReturnTypeExtension
845-
846836
-
847837
class: PHPStan\Type\ClosureTypeFactory
848838
arguments:

src/Type/Php/LtrimFunctionReturnTypeExtension.php

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

55
use PhpParser\Node\Expr\FuncCall;
66
use PHPStan\Analyser\Scope;
7+
use PHPStan\DependencyInjection\AutowiredService;
78
use PHPStan\Reflection\FunctionReflection;
89
use PHPStan\Type\ClassStringType;
910
use PHPStan\Type\Constant\ConstantStringType;
@@ -12,6 +13,7 @@
1213
use function count;
1314
use function ltrim;
1415

16+
#[AutowiredService]
1517
final class LtrimFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
1618
{
1719

src/Type/Php/TrimFunctionDynamicReturnTypeExtension.php

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

55
use PhpParser\Node\Expr\FuncCall;
66
use PHPStan\Analyser\Scope;
7+
use PHPStan\DependencyInjection\AutowiredService;
78
use PHPStan\Reflection\FunctionReflection;
89
use PHPStan\Type\Accessory\AccessoryLowercaseStringType;
910
use PHPStan\Type\Accessory\AccessoryUppercaseStringType;
@@ -14,6 +15,7 @@
1415
use function count;
1516
use function in_array;
1617

18+
#[AutowiredService]
1719
final class TrimFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
1820
{
1921

0 commit comments

Comments
 (0)