PHPStan\Analyser\UndefinedVariableException::__construct PHP Method

__construct() public method

public __construct ( Scope $scope, string $variableName )
$scope Scope
$variableName string
    public function __construct(Scope $scope, string $variableName)
    {
        parent::__construct(sprintf('Undefined variable: $%s', $variableName));
        $this->scope = $scope;
        $this->variableName = $variableName;
    }