You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently getting this error when the API returns unsuccessful response... no way to catch these in my application.
E_WARNING: array_merge(): Argument #2 is not an array
1 File "/public_html/vendor/davidepastore/ipinfo/src/DavidePastore/Ipinfo/Host.php" line 33 in array_merge
2 File "/public_html/vendor/davidepastore/ipinfo/src/DavidePastore/Ipinfo/Host.php" line 33 in __construct
3 File "/public_html/vendor/davidepastore/ipinfo/src/DavidePastore/Ipinfo/Ipinfo.php" line 153 in checkGeo
4 File "/public_html/vendor/davidepastore/ipinfo/src/DavidePastore/Ipinfo/Ipinfo.php" line 125 in getSpecificField
The text was updated successfully, but these errors were encountered:
Alternatively, you could have it fail silently if you transform an invalid JSON response from the API into an empty object. The issue is passing null into array_merge in the Host constructor.
I'm currently getting this error when the API returns unsuccessful response... no way to catch these in my application.
The text was updated successfully, but these errors were encountered: