Skip to content
Extraits de code Groupes Projets

fix: compatibilité PHP 8.2 : éviter l'erreur Deprecated: Use of parent in callables is deprecated

Fusionnées cy.altern a demandé de fusionner gh-0e04adce/29/unknown/refs/pull/29/head vers master
Comparer et
1 fichier
+ 5
5
Comparer les modifications
  • Côte à côte
  • En ligne
@@ -602,27 +602,27 @@ class FacteurMail extends PHPMailer {
$this->convertMessageFromUtf8ToIso8859();
}
$args = func_get_args();
$res = $this->callWrapper(['parent', 'Send'], $args);
$res = $this->callWrapper([parent::class, 'Send'], $args);
return $this->sendAlertIfNeeded($res);
}
public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') {
$args = func_get_args();
return $this->callWrapper(['parent', 'AddAttachment'], $args);
return $this->callWrapper([parent::class, 'AddAttachment'], $args);
}
public function AddReplyTo($address, $name = '') {
$args = func_get_args();
return $this->callWrapper(['parent', 'AddReplyTo'], $args);
return $this->callWrapper([parent::class, 'AddReplyTo'], $args);
}
public function AddBCC($address, $name = '') {
$args = func_get_args();
return $this->callWrapper(['parent', 'AddBCC'], $args);
return $this->callWrapper([parent::class, 'AddBCC'], $args);
}
public function AddCC($address, $name = '') {
$args = func_get_args();
return $this->callWrapper(['parent', 'AddCC'], $args);
return $this->callWrapper([parent::class, 'AddCC'], $args);
}
}
Chargement en cours