smsapi / smsapi-php-client

SMSAPI PHP client that allows you to send messages, manage Short URLs and administrate your SMSAPI account.
https://www.smsapi.pl
Other
64 stars 39 forks source link

Sending SMS triggers E_USER_DEPRECATED #99

Closed rutek closed 3 years ago

rutek commented 3 years ago

Calling SmsHttpFeature->sendSms(...) triggers following deprecation error:

E_USER_DEPRECATED: The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.

It comes from \GuzzleHttp\Psr7\Uri. I think changing SmsHttpFeature::makeRequest to use /sms.do instead of sms.do will fix it.

Tested version: 3.0.2 on PHP 7.4. SMSAPI library automatically installed guzzlehttp/psr7 in version 1.7.0.

smsapi commented 3 years ago

Hi @rutek. Thank you for information. We will verify that.

vosecek commented 3 years ago

Any progress? php library is not usable due to this problem.

smsapi commented 3 years ago

Thanks for the input! We know about this issue, and it is in our backlog since initially @rutek wrote about it. We intend to fix it, however it could still take some time.

bbprojectnet commented 3 years ago

Same issue here, any chance to fix it?