Skip to content

Commit b6762bd

Browse files
Instead of classes and functions of Hyperf\Utils (#5674)
Co-authored-by: 李铭昕 <[email protected]>
1 parent ceb7a98 commit b6762bd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"require": {
2121
"php": ">=8.0",
2222
"hyperf/collection": "~3.0.0",
23+
"hyperf/support": "~3.0.0",
2324
"hyperf/tappable": "~3.0.0",
2425
"ext-swoole": ">=5.0",
2526
"hyperf/database": "~3.0.0"

src/Schema/Grammars/PostgresGrammar.php

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

1414
use Hyperf\Database\Schema\Blueprint;
1515
use Hyperf\Database\Schema\Grammars\Grammar;
16-
use Hyperf\Utils\Fluent;
16+
use Hyperf\Support\Fluent;
1717
use RuntimeException;
1818

1919
use function Hyperf\Collection\collect;
20+
use function Hyperf\Support\with;
2021

2122
class PostgresGrammar extends Grammar
2223
{

tests/Cases/PostgreSqlSwooleExtConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Hyperf\Database\PgSQL\PostgreSqlSwooleExtConnection;
2525
use Hyperf\Database\Query\Builder;
2626
use Hyperf\Database\Schema\Schema;
27-
use Hyperf\Utils\Filesystem\Filesystem;
27+
use Hyperf\Support\Filesystem\Filesystem;
2828
use Mockery;
2929
use PHPUnit\Framework\TestCase;
3030
use Psr\Container\ContainerInterface;

0 commit comments

Comments
 (0)