4
4
5
5
namespace Tests \Unit \Concerns ;
6
6
7
+ use Larastan \Larastan \Internal \FileHelper ;
7
8
use Larastan \Larastan \Properties \MigrationHelper ;
8
9
use Larastan \Larastan \Properties \ModelDatabaseHelper ;
9
10
use Larastan \Larastan \Properties \Schema \PhpMyAdminDataTypeToPhpTypeConverter ;
10
11
use Larastan \Larastan \Properties \SquashedMigrationHelper ;
11
- use PHPStan \File \FileHelper ;
12
+ use PHPStan \File \FileHelper as PHPStanFileHelper ;
12
13
use PHPStan \Testing \PHPStanTestCase ;
13
14
14
15
/** @mixin PHPStanTestCase */
@@ -34,7 +35,9 @@ private function getMigrationHelper(array $dirs = ['foo'], bool $disableScan = f
34
35
return new MigrationHelper (
35
36
self ::getContainer ()->getService ('currentPhpVersionSimpleDirectParser ' ),
36
37
$ dirs ,
37
- self ::getContainer ()->getByType (FileHelper::class),
38
+ new FileHelper (
39
+ self ::getContainer ()->getByType (PHPStanFileHelper::class),
40
+ ),
38
41
$ disableScan ,
39
42
);
40
43
}
@@ -44,7 +47,9 @@ private function getSquashedMigrationHelper(array $dirs = ['foo'], bool $disable
44
47
{
45
48
return new SquashedMigrationHelper (
46
49
$ dirs ,
47
- self ::getContainer ()->getByType (FileHelper::class),
50
+ new FileHelper (
51
+ self ::getContainer ()->getByType (PHPStanFileHelper::class),
52
+ ),
48
53
new PhpMyAdminDataTypeToPhpTypeConverter (),
49
54
$ disableScan ,
50
55
);
0 commit comments