Skip to content

Conversation

halillusion
Copy link

Fixes Deprecated Warning in BasicIPInfoSerializer.php

Changes proposed in this pull request: This pull request addresses a deprecation warning related to the hash() function in BasicIPInfoSerializer.php (line 47). The warning occurs because null is being passed to the second parameter of hash(), which expects a string. To resolve this, I have explicitly cast the second parameter to a string.

Reviewers should focus on: Please review the changes to ensure that the casting of the second parameter in hash() does not introduce any unintended side effects. Also, verify if this resolves the deprecation warning as expected.

Screenshot: N/A

Confirmed:

[x] Frontend changes: Not applicable.
[x] Backend changes: Tests are green.
Required changes:

N/A

Base Error: Deprecated: hash(): Passing null to parameter #2 ($data) of type string is deprecated in /www/wwwroot/*/vendor/fof/geoip/src/Api/Serializer/BasicIPInfoSerializer.php on line 47

fix hash method parameter for required type
@DavideIadeluca DavideIadeluca self-assigned this Jan 23, 2025
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.

2 participants