-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69d7e81
commit 1cc337a
Showing
9 changed files
with
82 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Analyser; | ||
|
||
use PHPStan\Reflection\FunctionReflection; | ||
use PHPStan\Reflection\MethodReflection; | ||
use PHPStan\Reflection\ParametersAcceptor; | ||
|
||
interface InternalScopeFactory | ||
{ | ||
|
||
/** | ||
* @param ExpressionTypeHolder[] $expressionTypes | ||
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions | ||
* @param array<string, true> $currentlyAssignedExpressions | ||
* @param array<string, true> $currentlyAllowedUndefinedExpressions | ||
* @param ExpressionTypeHolder[] $nativeExpressionTypes | ||
* @param array<MethodReflection|FunctionReflection> $inFunctionCallsStack | ||
*/ | ||
public function create( | ||
ScopeContext $context, | ||
bool $declareStrictTypes = false, | ||
FunctionReflection|MethodReflection|null $function = null, | ||
?string $namespace = null, | ||
array $expressionTypes = [], | ||
array $conditionalExpressions = [], | ||
?string $inClosureBindScopeClass = null, | ||
?ParametersAcceptor $anonymousFunctionReflection = null, | ||
bool $inFirstLevelStatement = true, | ||
array $currentlyAssignedExpressions = [], | ||
array $currentlyAllowedUndefinedExpressions = [], | ||
array $nativeExpressionTypes = [], | ||
array $inFunctionCallsStack = [], | ||
bool $afterExtractCall = false, | ||
?Scope $parentScope = null, | ||
bool $nativeTypesPromoted = false, | ||
): MutatingScope; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters