File tree 1 file changed +1
-2
lines changed
src/Symfony/Component/Notifier/Bridge/LightSms
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Notifier \Bridge \LightSms ;
13
13
14
- use Symfony \Component \HttpFoundation \Response ;
15
14
use Symfony \Component \Notifier \Exception \TransportException ;
16
15
use Symfony \Component \Notifier \Exception \UnsupportedMessageTypeException ;
17
16
use Symfony \Component \Notifier \Message \MessageInterface ;
@@ -132,7 +131,7 @@ protected function doSend(MessageInterface $message): SentMessage
132
131
throw new TransportException ('Unable to send the SMS: ' .$ this ->errorCodes [$ content ['error ' ]], $ response );
133
132
}
134
133
135
- $ phone = preg_replace ("/[^\d]/ " , "" , $ message ->getPhone ());
134
+ $ phone = preg_replace ("/[^\d]/ " , '' , $ message ->getPhone ());
136
135
if (32 == $ content [$ phone ]['error ' ]) {
137
136
throw new TransportException ('Unable to send the SMS: ' .$ this ->errorCodes [$ content ['error ' ]], $ response );
138
137
}
You can’t perform that action at this time.
0 commit comments