Skip to content

Commit 3b4cbda

Browse files
committed
Register LtrimFunctionReturnTypeExtension with AutowiredService
1 parent 17af999 commit 3b4cbda

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
@@ -762,11 +762,6 @@ services:
762762
tags:
763763
- phpstan.broker.dynamicFunctionReturnTypeExtension
764764

765-
-
766-
class: PHPStan\Type\Php\LtrimFunctionReturnTypeExtension
767-
tags:
768-
- phpstan.broker.dynamicFunctionReturnTypeExtension
769-
770765
-
771766
class: PHPStan\Type\ClosureTypeFactory
772767
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\Accessory\AccessoryLowercaseStringType;
910
use PHPStan\Type\Accessory\AccessoryUppercaseStringType;
@@ -16,6 +17,7 @@
1617
use function count;
1718
use function ltrim;
1819

20+
#[AutowiredService]
1921
final class LtrimFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
2022
{
2123

0 commit comments

Comments
 (0)