Skip to content

Too narrow type hint for validate() #19112

@nicosp

Description

@nicosp

Description

The return type hint for Cake\Validation\Validator::validate() is array<string, array<string, string>>.

This is not true if there are nested validators and it creates false positives when running phpstan.

CakePHP Version

5.2.10

PHP Version

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions