1717use Hyperf \Validation \Contract \Rule as RuleContract ;
1818use Hyperf \Validation \Rules \Exists ;
1919use Hyperf \Validation \Rules \Unique ;
20+ use stdClass ;
21+ use Stringable ;
2022
2123class ValidationRuleParser
2224{
@@ -37,7 +39,7 @@ public function __construct(public array $data)
3739 /**
3840 * Parse the human-friendly rules into a full rules array for the validator.
3941 *
40- * @return \ stdClass
42+ * @return stdClass
4143 */
4244 public function explode (array $ rules )
4345 {
@@ -54,7 +56,7 @@ public function explode(array $rules)
5456 /**
5557 * Merge additional rules into a given attribute(s).
5658 *
57- * @param array|string|\ Stringable $rules
59+ * @param array|string|Stringable $rules
5860 */
5961 public function mergeRules (array $ results , array |string $ attribute , mixed $ rules = []): array
6062 {
@@ -155,7 +157,7 @@ protected function prepareRule($rule)
155157 /**
156158 * Define a set of rules that apply to each element in an array attribute.
157159 *
158- * @param array|string|\ Stringable $rules
160+ * @param array|string|Stringable $rules
159161 */
160162 protected function explodeWildcardRules (array $ results , string $ attribute , mixed $ rules ): array
161163 {
@@ -179,7 +181,7 @@ protected function explodeWildcardRules(array $results, string $attribute, mixed
179181 /**
180182 * Merge additional rules into a given attribute.
181183 *
182- * @param array|string|\ Stringable $rules
184+ * @param array|string|Stringable $rules
183185 */
184186 protected function mergeRulesForAttribute (array $ results , string $ attribute , mixed $ rules ): array
185187 {
0 commit comments