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
As can be seen above, the "variables" index contains an array and not string, said values are stand ins or placeholders for the error message (in the "text" index).
Replace this : $sndSms = $orangeSmsClient->sendSMS("+216000000", "+2160000", "Hi X, this is a test message.");
By : $sndSms = $orangeSmsClient->sendSMS("tel:+216000000", "tel:+2160000", "Hi X, this is a test message.");
Hello i use your " fixed php notice ( Array to string conversion ) in src/Osms.php #8" to resolve my issue but i want to use composite sendername like "one world" but i still get an error array(1) { ["error"]=> string(47) "Invalid input value for message part senderName" } but on postman the message is going perfectly.
An "Array to string conversion" error gets trigggered when sending a request:
Here's the code used when error was triggered:
The exception thrown reads as follow:
As can be seen above, the "variables" index contains an array and not string, said values are stand ins or placeholders for the error message (in the "text" index).
Corrective:
Edit this:
Into this:
Or better yet, add a method;
Then modify the "callApi" method from to reflect these changes:
The text was updated successfully, but these errors were encountered: