From 94e27e627e325f02d68a1e91b90cdc16b1b64004 Mon Sep 17 00:00:00 2001 From: Bruno <35786017+L4ZARIN3@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:50:45 -0300 Subject: [PATCH 1/2] Update HashManager.php Fix HashManager calling undefined make() helper --- src/HashManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HashManager.php b/src/HashManager.php index 3b7b591..37e2ca3 100644 --- a/src/HashManager.php +++ b/src/HashManager.php @@ -15,6 +15,7 @@ use HyperfExt\Hashing\Contract\HashInterface; use HyperfExt\Hashing\Driver\BcryptDriver; use InvalidArgumentException; +use function Hyperf\Support\make; class HashManager implements HashInterface { From 6c93d7b42a8e49a0c04993e4f8aa551048a77d6e Mon Sep 17 00:00:00 2001 From: Bruno <35786017+L4ZARIN3@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:52:53 -0300 Subject: [PATCH 2/2] Update hashing.php Refine hashing.php configuration settings --- publish/hashing.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/publish/hashing.php b/publish/hashing.php index f9adf67..a5c9a3d 100644 --- a/publish/hashing.php +++ b/publish/hashing.php @@ -8,6 +8,9 @@ * @contact eric@zhu.email * @license https://github.com/hyperf-ext/hashing/blob/master/LICENSE */ + +use function Hyperf\Support\env; + return [ /* |-------------------------------------------------------------------------- @@ -37,7 +40,7 @@ 'bcrypt' => [ 'class' => \HyperfExt\Hashing\Driver\BcryptDriver::class, 'options' => [ - 'rounds' => env('BCRYPT_ROUNDS', 10), + 'rounds' => (int) env('BCRYPT_ROUNDS', 10), ], ],