diff --git a/src/Libraries/Validation/Rule.php b/src/Libraries/Validation/Rule.php index 478bdafd..b644bdb5 100644 --- a/src/Libraries/Validation/Rule.php +++ b/src/Libraries/Validation/Rule.php @@ -9,7 +9,7 @@ * @author Arman Ag. * @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org) * @link http://quantum.softberg.org/ - * @since 2.0.0 + * @since 2.6.0 */ namespace Quantum\Libraries\Validation; @@ -24,16 +24,12 @@ class Rule /** * Sets the rule - * @param string $rule - * @param mixed|null $params + * @param string $rule + * @param mixed|null $params * @return array */ public static function set(string $rule, $params = null): array { - if (is_null($params)) { - $params = null; - } - return [$rule => $params]; }