Skip to content

Conversation

@L4ZARIN3
Copy link

Fix HashManager make() error

Error encountered:
Call to undefined function HyperfExt\Hashing\make()[92]

File affected:
vendor/hyperf-ext/hashing/src/HashManager.php

Cause:
The helper make() was not imported:
use function Hyperf\Support\make;

Solution:
Added the proper import so HashManager can call make() without errors.


Minor refinement in hashing.php

Changes:

  • Added import for env helper:
    use function Hyperf\Support\env;
  • Added type int type:
    rounds' => (int) env('BCRYPT_ROUNDS', 12)

Fix HashManager calling undefined make() helper
Refine hashing.php configuration settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant