Skip to content

Commit 60543da

Browse files
committed
TrimFunctionDynamicReturnTypeExtension - register as AutowiredService
1 parent c592622 commit 60543da

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

conf/config.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,6 @@ services:
767767
tags:
768768
- phpstan.broker.dynamicFunctionReturnTypeExtension
769769

770-
-
771-
class: PHPStan\Type\Php\TrimFunctionDynamicReturnTypeExtension
772-
tags:
773-
- phpstan.broker.dynamicFunctionReturnTypeExtension
774-
775770
-
776771
class: PHPStan\Type\ClosureTypeFactory
777772
arguments:

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)