Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPRECATED hash_hmac() passing null to parameter #57

Closed
Brainiac24 opened this issue Apr 3, 2023 · 2 comments
Closed

DEPRECATED hash_hmac() passing null to parameter #57

Brainiac24 opened this issue Apr 3, 2023 · 2 comments

Comments

@Brainiac24
Copy link

Brainiac24 commented Apr 3, 2023

There is a deprecation warning for php 8.1 in vendor/centrifugal/phpcent/src/Client.php on line 403 in "centrifugal/phpcent": "^5.1" version when calling $client->generateConnectionToken($userId) function.

Raw php warning message:
DEPRECATED hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in vendor/centrifugal/phpcent/src/Client.php on line 403.

@FZambia
Copy link
Member

FZambia commented Apr 16, 2023

Hello, have you set secret before calling sign? Do not understand how $key may be null otherwise.

@FZambia
Copy link
Member

FZambia commented Apr 7, 2024

Closing since no response from op.

@FZambia FZambia closed this as completed Apr 7, 2024
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

No branches or pull requests

2 participants