Skip to content

order of argument in Cake\Validation\Validator::notEmpty #10598

@saeideng

Description

@saeideng

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 4.x

there are anomaly between
Cake\Validation\Validator::notEmpty($field, $message = null, $when = false)
and
Cake\Validation\Validator::allowEmpty($field, $when = true, $message = null)

see order of $when and $message
i prefer to ( $field, $when = true, $message = null)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions