diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 217d60e4d..2e9a24250 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,9 @@ jobs: coverage: none - name: Setup Swoole run: | + sudo apt-get clean sudo apt-get update + sudo apt-get upgrade -f sudo apt-get install libcurl4-openssl-dev libc-ares-dev libpq-dev wget https://github.com/swoole/swoole-src/archive/${SW_VERSION}.tar.gz -O swoole.tar.gz mkdir -p swoole diff --git a/.travis/swoole.install.sh b/.travis/swoole.install.sh index bdf3cd284..d0b927a5b 100755 --- a/.travis/swoole.install.sh +++ b/.travis/swoole.install.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +sudo apt-get clean sudo apt-get update +sudo apt-get upgrade -f sudo apt-get install libcurl4-openssl-dev wget https://github.com/swoole/swoole-src/archive/${SW_VERSION}.tar.gz -O swoole.tar.gz mkdir -p swoole diff --git a/CHANGELOG-3.0.md b/CHANGELOG-3.0.md index 5dd3488fd..2826121d3 100644 --- a/CHANGELOG-3.0.md +++ b/CHANGELOG-3.0.md @@ -1,5 +1,10 @@ # v3.0.15 - TBD +## Optimized + +- [#5593](https://github.com/hyperf/hyperf/pull/5593) Use `Hyperf\Collection\Collection` instead of `Hyperf\Utils\Collection`. +- [#5594](https://github.com/hyperf/hyperf/pull/5594) Use `Hyperf\Collection\Arr` instead of `Hyperf\Utils\Arr`. + # v3.0.14 - 2023-04-01 ## Fixed diff --git a/docs/en/db/event.md b/docs/en/db/event.md index a53b62a68..e65512604 100644 --- a/docs/en/db/event.md +++ b/docs/en/db/event.md @@ -19,7 +19,7 @@ use Hyperf\Database\Events\QueryExecuted; use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Logger\LoggerFactory; -use Hyperf\Utils\Arr; +use Hyperf\Collection\Arr; use Hyperf\Utils\Str; use Psr\Container\ContainerInterface; use Psr\Log\LoggerInterface; @@ -176,4 +176,4 @@ class DeleteCacheListener implements ListenerInterface } } -``` \ No newline at end of file +``` diff --git a/docs/en/db/mutators.md b/docs/en/db/mutators.md index 3161286a4..3eb00bcbc 100644 --- a/docs/en/db/mutators.md +++ b/docs/en/db/mutators.md @@ -372,7 +372,7 @@ declare(strict_types=1); namespace App\Caster; use Hyperf\Contract\CastsAttributes; -use Hyperf\Utils\Arr; +use Hyperf\Collection\Arr; class UserInfoCaster implements CastsAttributes { diff --git a/docs/en/db/quick-start.md b/docs/en/db/quick-start.md index 1e3ba1860..0ba9d8ece 100644 --- a/docs/en/db/quick-start.md +++ b/docs/en/db/quick-start.md @@ -349,7 +349,7 @@ You can use the [database event listener](en/db/event) to record the SQL queries