Fix compatibility

This commit is contained in:
Laurent Destailleur 2024-02-08 00:24:27 +01:00
parent 0b6467758b
commit 038fcbab3d
3 changed files with 3 additions and 3 deletions

View file

@ -196,7 +196,7 @@ abstract class ModelePDFFactures extends CommonDocGenerator
* @param Translate $langs Translation object
* @return int Height in mm of the bottom-page QR invoice. Can be zero if not on right page; not enabled
*/
protected function getHeightForQRInvoice(int $pagenbr, Facture $object, Translate $langs): int
protected function getHeightForQRInvoice(int $pagenbr, Facture $object, Translate $langs)
{
if (getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE') == 'bottom') {
// Keep it, to reset it after QRinvoice getter

View file

@ -88,7 +88,7 @@ class InterfaceLogevents extends DolibarrTriggers
* @return int if KO: <0, if no trigger ran: 0, if OK: >0
* @throws Exception dol_syslog can throw Exceptions
*/
public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf): int
public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
{
if (getDolGlobalString('MAIN_LOGEVENTS_DISABLE_ALL')) {
return 0; // Log events is disabled (hidden features)

View file

@ -138,7 +138,7 @@ class Dolresource extends CommonObject
* @param int $no_trigger 0=launch triggers after, 1=disable triggers
* @return int Return integer if KO: <0, if OK: Id of created object
*/
public function create(User $user, int $no_trigger = 0): int
public function create(User $user, int $no_trigger = 0)
{
$error = 0;