Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Validate 类型现在强制定义场景吗?我remove 已经被getScene 给置空了 #1011

Open
simerlin opened this issue Dec 30, 2019 · 1 comment

Comments

@simerlin
Copy link

simerlin commented Dec 30, 2019

 $this->only = $this->append = $this->remove = [];

        if (empty($scene)) {
            return;
        }

现在不能使用remove方法了吗?
$validate->remove('email')->check($data);
更新到v5.1.39 LTS 后 发现这个版本把
$this->only = $this->append = $this->remove = [];
这句上移了 导致remove的被置空了

@klraL
Copy link

klraL commented Feb 1, 2020

同样遇到这个问题。 把这个下移好了。 不知道为什么改这个。之前5.1.36版本是在下面的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants