mirror of
https://github.com/Respect/Validation.git
synced 2024-05-21 23:56:42 +02:00
Fix wrong type in "KeySet" rule
The documentation states that we should use Validator::keySet() in combination with Validator::key() but the return type of key() does not match the expected parameter type of keyset(). Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
8d7d783698
commit
4c91e3397a
|
@ -10,7 +10,6 @@ declare(strict_types=1);
|
|||
namespace Respect\Validation;
|
||||
|
||||
use finfo;
|
||||
use Respect\Validation\Rules\Key;
|
||||
|
||||
interface StaticValidator
|
||||
{
|
||||
|
@ -201,7 +200,7 @@ interface StaticValidator
|
|||
bool $mandatory = true
|
||||
): ChainedValidator;
|
||||
|
||||
public static function keySet(Key ...$rule): ChainedValidator;
|
||||
public static function keySet(Validatable ...$rule): ChainedValidator;
|
||||
|
||||
public static function keyValue(string $comparedKey, string $ruleName, string $baseKey): ChainedValidator;
|
||||
|
||||
|
|
Loading…
Reference in a new issue