mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 06:28:40 +00:00
fix type hint
This commit is contained in:
parent
59417c16a9
commit
cadc00fd3a
|
|
@ -27,14 +27,14 @@ interface ValidatorInterface
|
||||||
/**
|
/**
|
||||||
* Check if value is valid.
|
* Check if value is valid.
|
||||||
*
|
*
|
||||||
* @param mixed $value Value to validate
|
* @param mixed $value Value to validate
|
||||||
* @param array $constraints Constraints for validation
|
* @param null|array $constraints Constraints for validation
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function isValid(mixed $value, array $constraints = null);
|
public static function isValid(mixed $value, array $constraints = null) : bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get most recent error string.
|
* Get most recent error string.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user