/
InternalScopeFactory.php
39 lines (34 loc) · 1.3 KB
/
InternalScopeFactory.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php declare(strict_types = 1);
namespace PHPStan\Analyser;
use PHPStan\Reflection\FunctionReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\ParametersAcceptor;
interface InternalScopeFactory
{
/**
* @param array<string, ExpressionTypeHolder> $expressionTypes
* @param array<string, ExpressionTypeHolder> $nativeExpressionTypes
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
* @param array<string, true> $currentlyAssignedExpressions
* @param array<string, true> $currentlyAllowedUndefinedExpressions
* @param array<FunctionReflection|MethodReflection> $inFunctionCallsStack
*/
public function create(
ScopeContext $context,
bool $declareStrictTypes = false,
FunctionReflection|MethodReflection|null $function = null,
?string $namespace = null,
array $expressionTypes = [],
array $nativeExpressionTypes = [],
array $conditionalExpressions = [],
?string $inClosureBindScopeClass = null,
?ParametersAcceptor $anonymousFunctionReflection = null,
bool $inFirstLevelStatement = true,
array $currentlyAssignedExpressions = [],
array $currentlyAllowedUndefinedExpressions = [],
array $inFunctionCallsStack = [],
bool $afterExtractCall = false,
?Scope $parentScope = null,
bool $nativeTypesPromoted = false,
): MutatingScope;
}