Метод | Описание | |
---|---|---|
__construct ( |
||
__construct ( |
||
addVariables ( |
||
assignVariable ( string $variableName, PHPStan\Type\Type $type = null ) : self | ||
canAccessConstant ( PHPStan\Reflection\ClassConstantReflection $constantReflection ) : boolean | ||
canAccessProperty ( PHPStan\Reflection\PropertyReflection $propertyReflection ) : boolean | ||
canCallMethod ( PHPStan\Reflection\MethodReflection $methodReflection ) : boolean | ||
changeAnalysedContextFile ( string $fileName ) : self | ||
enterAnonymousClass ( |
||
enterAnonymousFunction ( array $parameters, array $uses, |
||
enterCatch ( array $classes, string $variableName ) : self | ||
enterClass ( string $className ) : self | ||
enterClassMethod ( |
||
enterClosureBind ( PHPStan\Type\Type $thisType = null, string $scopeClass ) : self | ||
enterDeclareStrictTypes ( ) : self | ||
enterForeach ( PhpParser\Node $iteratee, string $valueName, string $keyName = null ) : self | ||
enterFunction ( PHPStan\Reflection\ParametersAcceptor $functionReflection ) : self | ||
enterFunctionCall ( PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall $functionCall ) : self | ||
enterFunctionCall ( PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | PhpParser\Node\Expr\StaticCall $functionCall ) : self | ||
enterNamespace ( string $namespaceName ) : self | ||
enterNegation ( ) : self | ||
enterVariableAssign ( string $variableName ) : self | ||
getAnalysedContextFile ( ) : string | ||
getAnonymousClass ( ) : |
||
getAnonymousFunctionReturnType ( ) : PHPStan\Type\Type | null | ||
getClass ( ) : null | string | ||
getFile ( ) : string | ||
getFunction ( ) : null | PHPStan\Reflection\ParametersAcceptor | ||
getFunctionName ( ) : null | string | ||
getInFunctionCall ( ) : PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | null | ||
getNamespace ( ) : null | string | ||
getType ( PhpParser\Node $node ) : PHPStan\Type\Type | ||
getVariableType ( string $variableName ) : PHPStan\Type\Type | ||
getVariableTypes ( ) : array | ||
hasVariableType ( string $variableName ) : boolean | ||
intersectVariables ( |
||
isDeclareStrictTypes ( ) : boolean | ||
isInAnonymousClass ( ) : boolean | ||
isInAnonymousFunction ( ) : boolean | ||
isInVariableAssign ( string $variableName ) : boolean | ||
isNegated ( ) : boolean | ||
isSpecified ( PhpParser\Node $node ) : boolean | ||
resolveName ( |
||
specifyExpressionType ( PhpParser\Node $expr, PHPStan\Type\Type $type ) : self | ||
specifyFetchedPropertyFromIsset ( PhpParser\Node\Expr\PropertyFetch $expr ) : self | ||
unsetVariable ( string $variableName ) : self |
Метод | Описание | |
---|---|---|
addMoreSpecificTypes ( array $types ) : self | ||
canAccessClassMember ( PHPStan\Reflection\ClassMemberReflection $classMemberReflection ) : boolean | ||
getAnonymousFunctionType ( |
||
getCombinedType ( array $types ) : PHPStan\Type\Type | ||
getFunctionType ( |
||
getTypeFromValue ( mixed $value ) : PHPStan\Type\Type | null | ||
isParameterValueNullable ( |
public __construct ( |
||
$broker | ||
$printer | ||
$file | string | |
$declareStrictTypes | boolean | |
$class | string | |
$function | PHPStan\Reflection\ParametersAcceptor | |
$namespace | string | |
$variablesTypes | array | |
$inClosureBindScopeClass | string | |
$inAnonymousFunctionReturnType | PHPStan\Type\Type | |
$anonymousClass | ||
$inFunctionCall | PhpParser\Node\Expr | |
$negated | boolean | |
$moreSpecificTypes | array | |
$currentlyAssignedVariables | array |
public __construct ( |
||
$broker | ||
$printer | ||
$file | string | |
$analysedContextFile | string | |
$declareStrictTypes | boolean | |
$class | string | |
$function | PHPStan\Reflection\ParametersAcceptor | |
$namespace | string | |
$variablesTypes | array | |
$inClosureBindScopeClass | string | |
$inAnonymousFunctionReturnType | PHPStan\Type\Type | |
$anonymousClass | ||
$inFunctionCall | PhpParser\Node\Expr | |
$negated | boolean | |
$moreSpecificTypes | array | |
$currentlyAssignedVariables | array |
public addVariables ( |
||
$otherScope | ||
Результат | self |
public assignVariable ( string $variableName, PHPStan\Type\Type $type = null ) : self | ||
$variableName | string | |
$type | PHPStan\Type\Type | |
Результат | self |
public canAccessConstant ( PHPStan\Reflection\ClassConstantReflection $constantReflection ) : boolean | ||
$constantReflection | PHPStan\Reflection\ClassConstantReflection | |
Результат | boolean |
public canAccessProperty ( PHPStan\Reflection\PropertyReflection $propertyReflection ) : boolean | ||
$propertyReflection | PHPStan\Reflection\PropertyReflection | |
Результат | boolean |
public canCallMethod ( PHPStan\Reflection\MethodReflection $methodReflection ) : boolean | ||
$methodReflection | PHPStan\Reflection\MethodReflection | |
Результат | boolean |
public changeAnalysedContextFile ( string $fileName ) : self | ||
$fileName | string | |
Результат | self |
public enterAnonymousClass ( |
||
$anonymousClass | ||
Результат | self |
public enterCatch ( array $classes, string $variableName ) : self | ||
$classes | array | |
$variableName | string | |
Результат | self |
public enterClass ( string $className ) : self | ||
$className | string | |
Результат | self |
public enterClassMethod ( |
||
$classMethod | ||
$phpDocParameterTypes | array | |
$phpDocReturnType | PHPStan\Type\Type | |
Результат | self |
public enterClosureBind ( PHPStan\Type\Type $thisType = null, string $scopeClass ) : self | ||
$thisType | PHPStan\Type\Type | |
$scopeClass | string | |
Результат | self |
public enterForeach ( PhpParser\Node $iteratee, string $valueName, string $keyName = null ) : self | ||
$iteratee | PhpParser\Node | |
$valueName | string | |
$keyName | string | |
Результат | self |
public enterFunction ( PHPStan\Reflection\ParametersAcceptor $functionReflection ) : self | ||
$functionReflection | PHPStan\Reflection\ParametersAcceptor | |
Результат | self |
public enterFunctionCall ( PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall $functionCall ) : self | ||
$functionCall | PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | |
Результат | self |
public enterFunctionCall ( PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | PhpParser\Node\Expr\StaticCall $functionCall ) : self | ||
$functionCall | PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | PhpParser\Node\Expr\StaticCall | |
Результат | self |
public enterNamespace ( string $namespaceName ) : self | ||
$namespaceName | string | |
Результат | self |
public enterVariableAssign ( string $variableName ) : self | ||
$variableName | string | |
Результат | self |
public getAnalysedContextFile ( ) : string | ||
Результат | string |
public getAnonymousClass ( ) : |
||
Результат |
public getAnonymousFunctionReturnType ( ) : PHPStan\Type\Type | null | ||
Результат | PHPStan\Type\Type | null |
public getFunction ( ) : null | PHPStan\Reflection\ParametersAcceptor | ||
Результат | null | PHPStan\Reflection\ParametersAcceptor |
public getFunctionName ( ) : null | string | ||
Результат | null | string |
public getInFunctionCall ( ) : PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | null | ||
Результат | PhpParser\Node\Expr\FuncCall | PhpParser\Node\Expr\MethodCall | null |
public getType ( PhpParser\Node $node ) : PHPStan\Type\Type | ||
$node | PhpParser\Node | |
Результат | PHPStan\Type\Type |
public getVariableType ( string $variableName ) : PHPStan\Type\Type | ||
$variableName | string | |
Результат | PHPStan\Type\Type |
public hasVariableType ( string $variableName ) : boolean | ||
$variableName | string | |
Результат | boolean |
public intersectVariables ( |
||
$otherScope | ||
Результат | self |
public isInAnonymousFunction ( ) : boolean | ||
Результат | boolean |
public isInVariableAssign ( string $variableName ) : boolean | ||
$variableName | string | |
Результат | boolean |
public isSpecified ( PhpParser\Node $node ) : boolean | ||
$node | PhpParser\Node | |
Результат | boolean |
public resolveName ( |
||
$name | ||
Результат | string | null |
public specifyExpressionType ( PhpParser\Node $expr, PHPStan\Type\Type $type ) : self | ||
$expr | PhpParser\Node | |
$type | PHPStan\Type\Type | |
Результат | self |
public specifyFetchedPropertyFromIsset ( PhpParser\Node\Expr\PropertyFetch $expr ) : self | ||
$expr | PhpParser\Node\Expr\PropertyFetch | |
Результат | self |
public unsetVariable ( string $variableName ) : self | ||
$variableName | string | |
Результат | self |