Update mailinglist_mymodule_myobject.modules.php

Warning: Declaration of mailing_***********::add_to_target($mailing_id) should be compatible with MailingTargets::add_to_target($mailing_id, $cibles)
This commit is contained in:
Frédéric FRANCE 2019-03-05 21:54:51 +01:00 committed by GitHub
parent cfd39a1483
commit b4851e3d40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,9 +97,10 @@ class mailing_mailinglist_mymodule_myobject extends MailingTargets
* This is the main function that returns the array of emails * This is the main function that returns the array of emails
* *
* @param int $mailing_id Id of emailing * @param int $mailing_id Id of emailing
* @param array $cibles Array with targets
* @return int <0 if error, number of emails added if ok * @return int <0 if error, number of emails added if ok
*/ */
public function add_to_target($mailing_id) public function add_to_target($mailing_id, $cibles)
{ {
// phpcs:enable // phpcs:enable
$target = array(); $target = array();