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:
César de la Cal 2023-07-10 08:52:58 +02:00 committed by Henrique Moody
parent 8d7d783698
commit 4c91e3397a
No known key found for this signature in database
GPG key ID: 221E9281655813A6

View file

@ -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;