Skip to content

Commit c592622

Browse files
committed
Revert "More AutowiredService"
This reverts commit 61c78a6.
1 parent fc3a97b commit c592622

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

conf/config.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,16 @@ services:
762762
tags:
763763
- phpstan.broker.dynamicFunctionReturnTypeExtension
764764

765+
-
766+
class: PHPStan\Type\Php\LtrimFunctionReturnTypeExtension
767+
tags:
768+
- phpstan.broker.dynamicFunctionReturnTypeExtension
769+
770+
-
771+
class: PHPStan\Type\Php\TrimFunctionDynamicReturnTypeExtension
772+
tags:
773+
- phpstan.broker.dynamicFunctionReturnTypeExtension
774+
765775
-
766776
class: PHPStan\Type\ClosureTypeFactory
767777
arguments:

src/Type/Php/LtrimFunctionReturnTypeExtension.php

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

55
use PhpParser\Node\Expr\FuncCall;
66
use PHPStan\Analyser\Scope;
7-
use PHPStan\DependencyInjection\AutowiredService;
87
use PHPStan\Reflection\FunctionReflection;
98
use PHPStan\Type\ClassStringType;
109
use PHPStan\Type\Constant\ConstantStringType;
@@ -13,7 +12,6 @@
1312
use function count;
1413
use function ltrim;
1514

16-
#[AutowiredService]
1715
final class LtrimFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
1816
{
1917

src/Type/Php/TrimFunctionDynamicReturnTypeExtension.php

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

55
use PhpParser\Node\Expr\FuncCall;
66
use PHPStan\Analyser\Scope;
7-
use PHPStan\DependencyInjection\AutowiredService;
87
use PHPStan\Reflection\FunctionReflection;
98
use PHPStan\Type\Accessory\AccessoryLowercaseStringType;
109
use PHPStan\Type\Accessory\AccessoryUppercaseStringType;
@@ -15,7 +14,6 @@
1514
use function count;
1615
use function in_array;
1716

18-
#[AutowiredService]
1917
final class TrimFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
2018
{
2119

0 commit comments

Comments
 (0)