Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion publish/hashing.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* @contact eric@zhu.email
* @license https://github.com/hyperf-ext/hashing/blob/master/LICENSE
*/

use function Hyperf\Support\env;

return [
/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -37,7 +40,7 @@
'bcrypt' => [
'class' => \HyperfExt\Hashing\Driver\BcryptDriver::class,
'options' => [
'rounds' => env('BCRYPT_ROUNDS', 10),
'rounds' => (int) env('BCRYPT_ROUNDS', 10),
],
],

Expand Down
1 change: 1 addition & 0 deletions src/HashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down