Merge pull request #25670 from frederic34/frederic34-patch-1-6
Fix doc and try to ignore phpstan warning
This commit is contained in:
commit
82f26d06dc
1 changed files with 17 additions and 1 deletions
|
|
@ -35,11 +35,26 @@
|
|||
*/
|
||||
class CSMSFile
|
||||
{
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
public $error = '';
|
||||
|
||||
/**
|
||||
* @var string[] Array of Error code (or message)
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
/**
|
||||
* @var string end of line character
|
||||
*/
|
||||
public $eol;
|
||||
|
||||
public $addr_from;
|
||||
public $addr_to;
|
||||
public $deferred;
|
||||
|
|
@ -124,8 +139,9 @@ class CSMSFile
|
|||
|
||||
if (empty($conf->global->MAIN_DISABLE_ALL_SMS)) {
|
||||
// Action according to choosed sending method
|
||||
if ($conf->global->MAIN_SMS_SENDMODE == 'ovh') { // Backward compatibility @deprecated
|
||||
if (getDolGlobalString('MAIN_SMS_SENDMODE') == 'ovh') { // Backward compatibility @deprecated
|
||||
dol_include_once('/ovh/class/ovhsms.class.php');
|
||||
/** @phpstan-ignore-next-line */
|
||||
$sms = new OvhSms($this->db);
|
||||
$sms->expe = $this->addr_from;
|
||||
$sms->dest = $this->addr_to;
|
||||
|
|
|
|||
Loading…
Reference in a new issue