File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -160,17 +160,6 @@ services:
160
160
-
161
161
class : PHPStan\Rules\Properties\UninitializedPropertyRule
162
162
163
- -
164
- class : SebastianBergmann\Diff\Differ
165
- arguments :
166
- outputBuilder : @SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder
167
-
168
- -
169
- class : SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder
170
- arguments :
171
- header : ' '
172
- addLineNumbers : true
173
-
174
163
betterReflectionSourceLocator :
175
164
class : PHPStan\BetterReflection\SourceLocator\Type\SourceLocator
176
165
factory : @PHPStan\Reflection\BetterReflection\BetterReflectionSourceLocatorFactory::create
Original file line number Diff line number Diff line change 23
23
use PHPStan \Rules \TipRuleError ;
24
24
use PHPStan \ShouldNotHappenException ;
25
25
use SebastianBergmann \Diff \Differ ;
26
+ use SebastianBergmann \Diff \Output \UnifiedDiffOutputBuilder ;
26
27
use function get_class ;
27
28
use function sha1 ;
28
29
use function str_repeat ;
29
30
30
31
final class RuleErrorTransformer
31
32
{
32
33
34
+ private Differ $ differ ;
35
+
33
36
public function __construct (
34
37
private Parser $ parser ,
35
- private Differ $ differ ,
36
38
)
37
39
{
40
+ $ this ->differ = new Differ (new UnifiedDiffOutputBuilder ('' , addLineNumbers: true ));
38
41
}
39
42
40
43
/**
Original file line number Diff line number Diff line change 25
25
final class Patcher
26
26
{
27
27
28
- public function __construct (private Differ $ differ )
28
+ private Differ $ differ ;
29
+
30
+ public function __construct ()
29
31
{
32
+ $ this ->differ = new Differ ();
30
33
}
31
34
32
35
/**
You can’t perform that action at this time.
0 commit comments