Skip to content

Commit a83c3dc

Browse files
herndlmondrejmirtes
authored andcommitted
Remove duplicated PHPDoc from InternalScopeFactory classes
1 parent 5bfe8f1 commit a83c3dc

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

Diff for: src/Analyser/DirectInternalScopeFactory.php

-11
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
use PHPStan\Node\Printer\ExprPrinter;
88
use PHPStan\Parser\Parser;
99
use PHPStan\Php\PhpVersion;
10-
use PHPStan\Reflection\FunctionReflection;
1110
use PHPStan\Reflection\InitializerExprTypeResolver;
12-
use PHPStan\Reflection\MethodReflection;
13-
use PHPStan\Reflection\ParameterReflection;
1411
use PHPStan\Reflection\ParametersAcceptor;
1512
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
1613
use PHPStan\Reflection\ReflectionProvider;
@@ -40,14 +37,6 @@ public function __construct(
4037
{
4138
}
4239

43-
/**
44-
* @param array<string, ExpressionTypeHolder> $expressionTypes
45-
* @param array<string, ExpressionTypeHolder> $nativeExpressionTypes
46-
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
47-
* @param list<array{FunctionReflection|MethodReflection|null, ParameterReflection|null}> $inFunctionCallsStack
48-
* @param array<string, true> $currentlyAssignedExpressions
49-
* @param array<string, true> $currentlyAllowedUndefinedExpressions
50-
*/
5140
public function create(
5241
ScopeContext $context,
5342
bool $declareStrictTypes = false,

Diff for: src/Analyser/InternalScopeFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface InternalScopeFactory
1818
* @param list<string> $inClosureBindScopeClasses
1919
* @param array<string, true> $currentlyAssignedExpressions
2020
* @param array<string, true> $currentlyAllowedUndefinedExpressions
21-
* @param list<array{MethodReflection|FunctionReflection|null, ParameterReflection|null}> $inFunctionCallsStack
21+
* @param list<array{FunctionReflection|MethodReflection|null, ParameterReflection|null}> $inFunctionCallsStack
2222
*/
2323
public function create(
2424
ScopeContext $context,

Diff for: src/Analyser/LazyInternalScopeFactory.php

-11
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
use PHPStan\DependencyInjection\Type\ExpressionTypeResolverExtensionRegistryProvider;
88
use PHPStan\Node\Printer\ExprPrinter;
99
use PHPStan\Php\PhpVersion;
10-
use PHPStan\Reflection\FunctionReflection;
1110
use PHPStan\Reflection\InitializerExprTypeResolver;
12-
use PHPStan\Reflection\MethodReflection;
13-
use PHPStan\Reflection\ParameterReflection;
1411
use PHPStan\Reflection\ParametersAcceptor;
1512
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
1613
use PHPStan\Reflection\ReflectionProvider;
@@ -25,14 +22,6 @@ public function __construct(
2522
{
2623
}
2724

28-
/**
29-
* @param array<string, ExpressionTypeHolder> $expressionTypes
30-
* @param array<string, ExpressionTypeHolder> $nativeExpressionTypes
31-
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
32-
* @param array<string, true> $currentlyAssignedExpressions
33-
* @param array<string, true> $currentlyAllowedUndefinedExpressions
34-
* @param list<array{FunctionReflection|MethodReflection|null, ParameterReflection|null}> $inFunctionCallsStack
35-
*/
3625
public function create(
3726
ScopeContext $context,
3827
bool $declareStrictTypes = false,

0 commit comments

Comments
 (0)