Merge pull request #25670 from frederic34/frederic34-patch-1-6

Fix doc and try to ignore phpstan warning
This commit is contained in:
Laurent Destailleur 2023-08-25 00:32:31 +02:00 committed by GitHub
commit 82f26d06dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;