joesaunderson / sportmonks-soccer

PHP API Client for Sportmonks Soccer API
MIT License
22 stars 14 forks source link

utf8 error in response #27

Open mirzazeyrek opened 3 years ago

mirzazeyrek commented 3 years ago

https://github.com/joesaunderson/sportmonks-soccer/blob/4740950246d483bcac88aa7263af0f2c6441ed5f/src/SoccerClient.php#L54

because of some reasons due to new changes in api,

return json_decode($response);

must be

json_decode(utf8_encode($response));

otherwise some of the values in the object being NULL even though there are values. I'm not sure if the repository is still being maintained but for sure a fix is required for the 2020 soccer stats.