fix phpstan

This commit is contained in:
Frédéric France
2025-01-03 18:17:19 +01:00
parent 862ddc45bc
commit 3cb5235a38
2 changed files with 4 additions and 19 deletions

View File

@@ -21858,24 +21858,6 @@ parameters:
count: 1
path: ../../htdocs/install/check.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 19
path: ../../htdocs/install/check.php
-
message: '#^Variable \$conffile might not be defined\.$#'
identifier: variable.undefined
count: 19
path: ../../htdocs/install/check.php
-
message: '#^Variable \$conffiletoshow might not be defined\.$#'
identifier: variable.undefined
count: 13
path: ../../htdocs/install/check.php
-
message: '#^Variable \$db might not be defined\.$#'
identifier: variable.undefined

View File

@@ -7,7 +7,7 @@
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2015-2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* 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
@@ -32,6 +32,7 @@
define('ALLOWED_IF_UPGRADE_UNLOCK_FOUND', 1);
include_once 'inc.php';
/**
* @var Conf $conf already created in inc.php
* @var Translate $langs
*
* @var string $dolibarr_main_db_host
@@ -39,6 +40,8 @@ include_once 'inc.php';
* @var string $dolibarr_main_db_name
* @var string $dolibarr_main_db_user
* @var string $dolibarr_main_db_pass
* @var string $conffile
* @var string $conffiletoshow
*/
$err = 0;