[Web] update directorytree/ldaprecord
This commit is contained in:
@@ -10,5 +10,5 @@ interface DataAwareRule
|
||||
* @param array $data
|
||||
* @return $this
|
||||
*/
|
||||
public function setData($data);
|
||||
public function setData(array $data);
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ interface Factory
|
||||
* @param array $data
|
||||
* @param array $rules
|
||||
* @param array $messages
|
||||
* @param array $customAttributes
|
||||
* @param array $attributes
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
public function make(array $data, array $rules, array $messages = [], array $customAttributes = []);
|
||||
public function make(array $data, array $rules, array $messages = [], array $attributes = []);
|
||||
|
||||
/**
|
||||
* Register a custom validator extension.
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
interface ImplicitRule extends Rule
|
||||
{
|
||||
//
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
interface InvokableRule
|
||||
{
|
||||
/**
|
||||
* Run the validation rule.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
|
||||
* @return void
|
||||
*/
|
||||
public function __invoke(string $attribute, mixed $value, Closure $fail);
|
||||
}
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
interface Rule
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Closure;
|
||||
|
||||
interface ValidationRule
|
||||
{
|
||||
/**
|
||||
* Run the validation rule.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
|
||||
* @return void
|
||||
*/
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void;
|
||||
}
|
||||
+3
-1
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Illuminate\Validation\Validator;
|
||||
|
||||
interface ValidatorAwareRule
|
||||
{
|
||||
/**
|
||||
@@ -10,5 +12,5 @@ interface ValidatorAwareRule
|
||||
* @param \Illuminate\Validation\Validator $validator
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidator($validator);
|
||||
public function setValidator(Validator $validator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user