Skip to content

Commit 54c52dd

Browse files
authored
Use Hyperf\Coroutine\Channel\Pool instead of Hyperf\Utils\ChannelPool (#5671)
1 parent b450daf commit 54c52dd

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
"require": {
2121
"php": ">=8.0",
2222
"egulias/email-validator": "^3.0",
23+
"hyperf/collection": "~3.0.0",
2324
"hyperf/contract": "~3.0.0",
2425
"hyperf/database": "~3.0.0",
2526
"hyperf/di": "~3.0.0",
2627
"hyperf/framework": "~3.0.0",
2728
"hyperf/http-server": "~3.0.0",
2829
"hyperf/macroable": "~3.0.0",
30+
"hyperf/tappable": "~3.0.0",
2931
"hyperf/translation": "~3.0.0",
3032
"hyperf/utils": "~3.0.0",
3133
"nesbot/carbon": "^2.21",

src/Concerns/ValidatesAttributes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
use SplFileInfo;
3030
use Throwable;
3131

32+
use function Hyperf\Collection\last;
33+
3234
trait ValidatesAttributes
3335
{
3436
/**

src/ValidationData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use Hyperf\Collection\Arr;
1515
use Hyperf\Stringable\Str;
1616

17+
use function Hyperf\Collection\data_set;
18+
1719
class ValidationData
1820
{
1921
/**

src/ValidationException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
1919
use Psr\Http\Message\ResponseInterface;
2020

21+
use function Hyperf\Tappable\tap;
22+
2123
class ValidationException extends ServerException
2224
{
2325
/**

src/ValidationRuleParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
use stdClass;
2121
use Stringable;
2222

23+
use function Hyperf\Collection\head;
24+
2325
class ValidationRuleParser
2426
{
2527
/**

src/Validator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
use Stringable;
3030

3131
use function Hyperf\Collection\collect;
32+
use function Hyperf\Collection\data_get;
33+
use function Hyperf\Tappable\tap;
3234

3335
class Validator implements ValidatorContract
3436
{

0 commit comments

Comments
 (0)