You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Command/CommandHelper.php
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
useNette\Schema\ValidationException;
12
12
useNette\Utils\AssertionException;
13
13
useNette\Utils\Strings;
14
+
usePHPStan\Analyser\MutatingScope;
14
15
usePHPStan\Command\Symfony\SymfonyOutput;
15
16
usePHPStan\Command\Symfony\SymfonyStyle;
16
17
usePHPStan\DependencyInjection\Container;
@@ -472,6 +473,12 @@ public static function begin(
472
473
$errorOutput->writeLineFormatted(sprintf('Parameter <fg=cyan>excludes_analyse</> has been deprecated so use <fg=cyan>excludePaths</> only from now on.'));
473
474
}
474
475
476
+
if ($container->hasParameter('scopeClass') && $container->getParameter('scopeClass') !== MutatingScope::class) {
477
+
$errorOutput->writeLineFormatted('⚠️ You\'re using a deprecated config option <fg=cyan>scopeClass</>. ⚠️️');
478
+
$errorOutput->writeLineFormatted('');
479
+
$errorOutput->writeLineFormatted(sprintf('Please implement PHPStan\Type\ExpressionTypeResolverExtension interface instead and register it as a service.'));
0 commit comments