Skip to content

Commit 78d65c9

Browse files
committed
fix: new phpstan version
1 parent 0075aa8 commit 78d65c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PHPStanAnalyser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use PHPStan\PhpDoc\PhpDocInheritanceResolver;
2626
use PHPStan\PhpDoc\StubPhpDocProvider;
2727
use PHPStan\Reflection\AttributeReflectionFactory;
28+
use PHPStan\Reflection\Deprecation\DeprecationProvider;
2829
use PHPStan\Reflection\InitializerExprTypeResolver;
2930
use PHPStan\Reflection\ReflectionProvider;
3031
use PHPStan\Reflection\SignatureMap\SignatureMapProvider;
@@ -67,6 +68,7 @@ public static function make(Container $container, array $rules, array $collector
6768
$container->getByType(StubPhpDocProvider::class),
6869
$container->getByType(PhpVersion::class),
6970
$container->getByType(SignatureMapProvider::class),
71+
$container->getByType(DeprecationProvider::class),
7072
$container->getByType(AttributeReflectionFactory::class),
7173
$container->getByType(PhpDocInheritanceResolver::class),
7274
$container->getByType(FileHelper::class),
@@ -83,6 +85,7 @@ public static function make(Container $container, array $rules, array $collector
8385
[], // @phpstan-ignore-line
8486
true,
8587
true,
88+
false,
8689
);
8790
} elseif ($version !== null && version_compare($version, '2.0.0', '>=')) {
8891
$nodeScopeResolver = new NodeScopeResolver( // @phpstan-ignore-line

0 commit comments

Comments
 (0)