diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index b70871bdf2d..dc3f59c86c6 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -5,7 +5,7 @@ * Copyright (C) 2021-2023 Waël Almoman * Copyright (C) 2021 Maxime Demarest * Copyright (C) 2021 Dorian Vabre - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 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 @@ -174,6 +174,7 @@ $error = 0; // Check if we have redirtodomain to do. $ws_virtuelhost = null; +$doactionsthenredirect = 0; if ($ws) { $doactionsthenredirect = 1; include_once DOL_DOCUMENT_ROOT.'/website/class/website.class.php'; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 075cc668cca..377e432596a 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -26,7 +26,27 @@ parameters: - htdocs/modulebuilder/template/test/* - htdocs/support/* analyse: - - htdocs/includes/* + - htdocs/includes/geoPHP/* + - htdocs/includes/markrogoyski/* + - htdocs/includes/maximebf/* + - htdocs/includes/mike42/* + - htdocs/includes/mobiledetect/* + - htdocs/includes/nusoap/* + - htdocs/includes/OAuth/* + - htdocs/includes/odtphp/zip/* + - htdocs/includes/parsedown/* + - htdocs/includes/php-iban/* + - htdocs/includes/phpoffice/* + - htdocs/includes/printipp/* + - htdocs/includes/Psr/* + - htdocs/includes/restler/* + - htdocs/includes/sabre/* + - htdocs/includes/stripe/* + - htdocs/includes/swiftmailer/* + - htdocs/includes/symfony/* + - htdocs/includes/tcpdi/* + - htdocs/includes/tecnickcom/* + - htdocs/includes/webklex/* - htdocs/core/class/lessc.class.php # checkAlwaysTrueCheckTypeFunctionCall: false # checkAlwaysTrueInstanceof: false