fix hidden phpstan error (#26891)

This commit is contained in:
Frédéric FRANCE 2023-11-30 17:44:59 +01:00 committed by GitHub
parent bffbe18f82
commit cdcd1c4562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,8 @@ class mailing_thirdparties_services_expired extends MailingTargets
*/
public function add_to_target($mailing_id)
{
global $conf;
// phpcs:enable
$key = GETPOST('filter', 'int');
@ -187,6 +189,8 @@ class mailing_thirdparties_services_expired extends MailingTargets
*/
public function getNbOfRecipients($sql = '')
{
global $conf;
$now = dol_now();
// Example: return parent::getNbOfRecipients("SELECT count(*) as nb from dolibarr_table");