Repository navigation
Expand file tree
/
Copy pathInternalScopeFactory.php
More file actions
52 lines (45 loc) · 1.91 KB
/
Copy pathInternalScopeFactory.php
File metadata and controls
52 lines (45 loc) · 1.91 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php declare(strict_types = 1);
namespace PHPStan\Analyser;
use PHPStan\Analyser\Generics\TemplateArgumentConstraints;
use PHPStan\Analyser\Generics\TemplateArgumentFrame;
use PHPStan\Reflection\FunctionReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\ParameterReflection;
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
use PHPStan\Type\ClosureType;
interface InternalScopeFactory
{
/**
* @param array<string, ExpressionTypeHolder> $expressionTypes
* @param array<string, ExpressionTypeHolder> $nativeExpressionTypes
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
* @param list<non-empty-string> $inClosureBindScopeClasses
* @param array<string, bool> $currentlyAssignedExpressions
* @param array<string, true> $currentlyAllowedUndefinedExpressions
* @param list<array{FunctionReflection|MethodReflection|null, ParameterReflection|null}> $inFunctionCallsStack
* @param array<string, ResultProvenance> $resultProvenance
*/
public function create(
ScopeContext $context,
bool $declareStrictTypes = false,
PhpFunctionFromParserNodeReflection|null $function = null,
?string $namespace = null,
array $expressionTypes = [],
array $nativeExpressionTypes = [],
array $conditionalExpressions = [],
array $inClosureBindScopeClasses = [],
?ClosureType $anonymousFunctionReflection = null,
bool $inFirstLevelStatement = true,
array $currentlyAssignedExpressions = [],
array $currentlyAllowedUndefinedExpressions = [],
array $inFunctionCallsStack = [],
bool $afterExtractCall = false,
?MutatingScope $parentScope = null,
bool $nativeTypesPromoted = false,
?TemplateArgumentFrame $templateArgumentFrame = null,
?TemplateArgumentConstraints $templateArgumentConstraints = null,
array $resultProvenance = [],
): MutatingScope;
public function toNodeCallbackScopeFactory(): self;
public function toWalkScopeFactory(): self;
}