Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extend function doesn't work #296

Closed
ConstantineYurevich opened this issue Mar 5, 2016 · 0 comments · Fixed by #414
Closed

Extend function doesn't work #296

ConstantineYurevich opened this issue Mar 5, 2016 · 0 comments · Fixed by #414

Comments

@ConstantineYurevich
Copy link

Code of extend function:

    public function extend($ttl = null)
    {
        if ($this->isDisabled()) {
            return false;
        }
        return $this->set($this->get(), $ttl);
    }

While set function doesn't have $ttl attribute:

   public function set($value)
    {
        if (!isset($this->key)) {
            return false;
        }

        if ($this->isDisabled()) {
            return $this;
        }

        $this->data = $value;
        return $this;
    }
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant