Skip to content

Commit 7230d22

Browse files
authored
Use Hyperf\Collection\Arr instead of Hyperf\Utils\Arr. (#5594)
1 parent 3c74f75 commit 7230d22

9 files changed

+9
-9
lines changed

src/Concerns/FormatsMessages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Hyperf\Validation\Concerns;
1313

1414
use Closure;
15+
use Hyperf\Collection\Arr;
1516
use Hyperf\HttpMessage\Upload\UploadedFile;
16-
use Hyperf\Utils\Arr;
1717
use Hyperf\Utils\Str;
1818
use Hyperf\Validation\Validator;
1919

src/Concerns/ReplacesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
namespace Hyperf\Validation\Concerns;
1313

14-
use Hyperf\Utils\Arr;
14+
use Hyperf\Collection\Arr;
1515

1616
trait ReplacesAttributes
1717
{

src/Concerns/ValidatesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use Egulias\EmailValidator\EmailValidator;
2020
use Egulias\EmailValidator\Validation\RFCValidation;
2121
use Exception;
22+
use Hyperf\Collection\Arr;
2223
use Hyperf\HttpMessage\Upload\UploadedFile;
23-
use Hyperf\Utils\Arr;
2424
use Hyperf\Utils\Str;
2525
use Hyperf\Validation\Rules\Exists;
2626
use Hyperf\Validation\Rules\Unique;

src/Request/FormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*/
1212
namespace Hyperf\Validation\Request;
1313

14+
use Hyperf\Collection\Arr;
1415
use Hyperf\Context\Context;
1516
use Hyperf\Contract\ValidatorInterface;
1617
use Hyperf\HttpServer\Request;
17-
use Hyperf\Utils\Arr;
1818
use Hyperf\Validation\Contract\ValidatesWhenResolved;
1919
use Hyperf\Validation\Contract\ValidatorFactoryInterface as ValidationFactory;
2020
use Hyperf\Validation\UnauthorizedException;

src/ValidationData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
namespace Hyperf\Validation;
1313

14-
use Hyperf\Utils\Arr;
14+
use Hyperf\Collection\Arr;
1515
use Hyperf\Utils\Str;
1616

1717
class ValidationData

src/ValidationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*/
1212
namespace Hyperf\Validation;
1313

14+
use Hyperf\Collection\Arr;
1415
use Hyperf\Contract\ValidatorInterface;
1516
use Hyperf\Server\Exception\ServerException;
1617
use Hyperf\Utils\ApplicationContext;
17-
use Hyperf\Utils\Arr;
1818
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
1919
use Psr\Http\Message\ResponseInterface;
2020

src/ValidationRuleParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Hyperf\Validation;
1313

1414
use Closure;
15-
use Hyperf\Utils\Arr;
15+
use Hyperf\Collection\Arr;
1616
use Hyperf\Utils\Str;
1717
use Hyperf\Validation\Contract\Rule as RuleContract;
1818
use Hyperf\Validation\Rules\Exists;

src/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
use BadMethodCallException;
1515
use Closure;
16+
use Hyperf\Collection\Arr;
1617
use Hyperf\Contract\MessageBag as MessageBagContract;
1718
use Hyperf\Contract\TranslatorInterface;
1819
use Hyperf\Contract\ValidatorInterface as ValidatorContract;
1920
use Hyperf\HttpMessage\Upload\UploadedFile;
20-
use Hyperf\Utils\Arr;
2121
use Hyperf\Utils\Fluent;
2222
use Hyperf\Utils\MessageBag;
2323
use Hyperf\Utils\Str;

tests/Cases/ValidationValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
use Carbon\Carbon;
1515
use DateTime;
1616
use DateTimeImmutable;
17+
use Hyperf\Collection\Arr;
1718
use Hyperf\Contract\TranslatorInterface as TranslatorContract;
1819
use Hyperf\Di\Container;
1920
use Hyperf\Di\Definition\DefinitionSourceInterface;
2021
use Hyperf\HttpMessage\Upload\UploadedFile;
2122
use Hyperf\Translation\ArrayLoader;
2223
use Hyperf\Translation\Translator;
2324
use Hyperf\Utils\ApplicationContext;
24-
use Hyperf\Utils\Arr;
2525
use Hyperf\Validation\Contract\ImplicitRule;
2626
use Hyperf\Validation\Contract\PresenceVerifierInterface;
2727
use Hyperf\Validation\Contract\Rule;

0 commit comments

Comments
 (0)