cakephp / docs

CakePHP CookBook
http://book.cakephp.org
Other
679 stars 2.58k forks source link

Validator docs should clarify what happens if `$when` is null #7967

Open mehov opened 3 days ago

mehov commented 3 days ago

Hi everyone

Closure|string|null $when optional Either 'create' or 'update' or a Closure that returns true when the validation rule should be applied.

Unclear what happens if null is passed.