From b0d1d0efea9638b7a9fd3ac0e58f387a3da3a01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 28 May 2026 15:00:46 +0200 Subject: [PATCH] fix --- .../interface_50_modBlockedlog_ActionsBlockedLog.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/triggers/interface_50_modBlockedlog_ActionsBlockedLog.class.php b/htdocs/core/triggers/interface_50_modBlockedlog_ActionsBlockedLog.class.php index da616f9b117..17150394515 100644 --- a/htdocs/core/triggers/interface_50_modBlockedlog_ActionsBlockedLog.class.php +++ b/htdocs/core/triggers/interface_50_modBlockedlog_ActionsBlockedLog.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2017-2018 Laurent Destailleur - * Copyright (C) 2025 Frédéric France + * Copyright (C) 2025-2026 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -129,6 +129,8 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers // If we are here, we are on an action code that will have a control or will generate a record in blockedlog database. if ($action === 'PAYMENT_CUSTOMER_CREATE' && $object->element == 'payment') { + /** @var Paiement $object */ + '@phan-var-force Paiement $object'; include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; if (isALNERunningVersion() && $mysoc->country_code == 'FR') { if (empty($object->paiementcode) && !empty($object->paiementid)) {