`skipOnEmpty` in some rules is not null by default
Open
@samdark is already working on this.
Since Mar 10, 2026.
severity:BC breaking
- Dominant language
- PHP
- Stars
- 167
- Forks
- 47
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 3
Description
Description
skipOnEmpty parameter in rules should be null by default. In this case validator can set default value setted via Validator::withDefaultSkipOnEmptyCondition().
Currently some rules use false as default value:
Package version
2.5.1
PHP version
any
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.