PHPStan\Analyser\Scope::enterVariableAssign PHP Method

enterVariableAssign() public method

public enterVariableAssign ( string $variableName ) : self
$variableName string
return self
    public function enterVariableAssign(string $variableName) : self
    {
        $currentlyAssignedVariables = $this->currentlyAssignedVariables;
        $currentlyAssignedVariables[] = $variableName;
        return new self($this->broker, $this->printer, $this->getFile(), $this->isDeclareStrictTypes(), $this->getClass(), $this->getFunction(), $this->getNamespace(), $this->getVariableTypes(), $this->inClosureBindScopeClass, $this->getAnonymousFunctionReturnType(), $this->isInAnonymousClass() ? $this->getAnonymousClass() : null, $this->getInFunctionCall(), $this->isNegated(), $this->moreSpecificTypes, $currentlyAssignedVariables);
    }