Skip to content

Conversation

@xuanyanwow
Copy link
Member

Old version code :

return Arr::only($rules, $this->scenes[$scene]);

New version code:

 if (is_string($key)) {
    $result[$key] = $value;
} elseif (is_numeric($key) && is_string($value)) {
    $result[$value] = $rules[$value];
}

Question:
If rule not define some filed, the version will throw some warning / exception.

@xuanyanwow xuanyanwow changed the title Fixed Validation BC when rule not define. Fixed BC when validation rule not define. Nov 4, 2025
@limingxinleo limingxinleo merged commit bbcad35 into master Nov 4, 2025
150 checks passed
@limingxinleo limingxinleo deleted the siam/fixed-validation branch November 4, 2025 03:11
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

Successfully merging this pull request may close these issues.

4 participants